unlink

Call the unlink() function to delete a file

Syntax:

unlink file

Runs on:

QNX Neutrino

Options:

file
The pathname of an existing file.

Description:

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).

Exit status:

0
Successful completion.
> 0
An error occurred.