Call the unlink() function to delete a file
unlink file
QNX Neutrino
The unlink utility is a command-line interface to the unlink() function:
(void)unlink( file );
You need the appropriate permissions (typically write permission in the directory that contains file) in order to use the unlink utility. In order to unlink a directory, you need the appropriate permissions, and the filesystem must also allow it (see _PC_LINK_DIR in the description of pathconf() in the QNX Neutrino C Library Reference).