file_delete()

Deletes a specified file from the filesystem.

Syntax

file_delete({file_path})

Parameters

Parameter Type Description Comment
file_path String The path of the file to be deleted.

Return Value

Examples

Delete a file named “data.txt”

file_delete("data.txt"); // returns 1 if successful, 0 if failed

See also

file_delete

file_open
file_close

file_read

file_append
file_flush