| SYS-REMOVE(2) | System Calls Manual | SYS-REMOVE(2) |
remove - remove a file
include "sys.m"; sys := load Sys Sys->PATH; remove: fn(file: string): int;
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.