DosDeleteMailslot or Dos32DeleteMailslot

The DosDeleteMailslot API deletes a mailslot. This discards all messages, including any that have not been read.

Mailslots enable applications to create and store messages while a program is running. Generally, these mailslots are deleted as the last step in running a program.