fremove

warning

This function starts with lowercase letter.

Description

Delete a file.

NameDescription
name[]The path of the file to delete. (NOTE: NOT a file handle)

Returns

1: The function executed successfully.

0: The function failed to execute. The file doesn't exist, or you don't have permission to delete it.

Examples

fremove("Example.txt");

Notes

tip

Files that are currently open (fopen) must be closed first (fclose) to be deleted.

warning

The file path must be valid.

Related Functions