xref: /inferno-os/man/2/sys-remove (revision 7ef44d652ae9e5e1f5b3465d73684e4a54de73c0)
SYS-REMOVE 2
NAME
remove - remove a file
SYNOPSIS
.EX include "sys.m"; sys := load Sys Sys->PATH; remove: fn(file: string): int;
DESCRIPTION
Remove removes file from the directory containing it and discards the contents of the file. The user must have write permission in the containing directory. If file is a directory, it must be empty. Remove returns zero if it deletes the file, -1 otherwise.
SEE ALSO
sys-intro (2)