unlink

Call the unlink() function to delete a file

Syntax:

unlink file

Runs on:

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

Exit status:

0
Successful completion.
> 0
An error occurred.

See also:

link, ln, rm, rmdir

pathconf(), unlink() in the QNX Neutrino Library Reference