Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/u/unlink.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/u/unlink.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/u/unlink.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/u/unlink.html on line 8

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

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


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/utilities/u/unlink.html on line 128

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/utilities/u/unlink.html on line 128