# DeleteMsgPort

Deletes a message port.

### Synopsis

`Err DeleteMsgPort( Item it )`

### Description

This macro deletes the specified message port.

### Arguments

it
  The item number of the message port to be deleted.

### Return Value

The macro returns a value greater than or equal to 0 if successful or an error code if an error occurs.

### Implementation

Macro implemented in msgport.h V20.

### Associated Files

msgport.h
  ANSI C Macro

### See Also

``CreateMsg`(), CreateMsgPort()`

#