Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

remove - Delete file

&pagelevel(4)&pagelevel

Definition

#include <stdio.h>

int remove(const char *f_name);

remove deletes the file f_name. f_name may be a fully or partially qualified file name.

Return val.

0

-1

if successful.

if the file cannot be deleted, e.g. if there is no file with the name f_name or
the file has been opened by another task. In addition, errno is set to EDMS.

Notes

If a partially qualified file name is specified, then remove will delete all corresponding files
without asking for confirmation (Y/N). The response "Y" is assumed.

remove performs only a logical deletion of the file(s), i.e. the catalog entry is deleted and
the assigned memory is released.

If a file has been opened by any program, it is not deleted.

Record I/O

remove can also be used unchanged on files with record I/O.