Deleting a named pipe
To delete a named pipe on UNIX, use the rm command.
For example, to delete the named pipe mypipe in the working directory, type the following command:
From within a C program, use the unlink() system call. For more information on unlink(), see your system documentation.