Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

unlink

Call the unlink() function to delete a file

Syntax:

unlink file

Options:

file
The pathname of an existing file.

Description:

The unlink utility is a command-line interface to the unlink() function:

(void)unlink( file );

Only the superuser may use the unlink utility. Only the superuser may unlink a directory, and then only if the filesystem allows it (see _PC_LINK_DIR in the description of pathconf() in the Library Reference).

Exit status:

0
Successful completion.
> 0
An error occurred.

Caveats:

The unlink command can be very dangerous to your filesystem; you should probably use rm or rmdir instead.

See also:

link, ln, rm, rmdir

pathconf() in the Library Reference


[Previous] [Contents] [Index] [Next]