os.Path.delete

Deletes a file or a directory.

Syntax

os.Path.delete(
   dname STRING)
  RETURNING result INTEGER
  1. dname is the name of the file or directory to delete.

Usage

A directory can only be deleted if it is empty.

The function TRUE if the file has been successfully deleted, FALSE otherwise.