# DeleteFile

Deletes a file.

### Synopsis

`Err DeleteFile( char *path )`

### Description

This function deletes a file.

### Arguments

path
  The pathname for the file to delete.

### Return Value

The function returns zero if the file was successfully deleted or a negative error code if an error occurs.

### Implementation

SWI implemented in file folio V20.

### Associated Files

filefunctions.h

### See Also

``CreateFile`(), OpenDiskFile(), OpenDiskFileInDir(), CloseDiskFile()`