os.Path.delete

The os.Path.delete method is used to delete a file or a directory. The syntax of the method is as follows:

 

CALL os.Path.delete(d_name) RETURNING result

 

where:

·         d_name = a string containing the path name to the file or directory to be deleted,

·         result = TRUE whether the deletion has been carried out successfully or FALSE otherwise.

 

Note that only an empty directory can be deleted this way.