HDFql Reference Manual v2.6.0

6.4.15DROP FILE

Syntax

DROP FILE file_name [, file_name]*

Description

Drop (i.e. delete) an existing file named file_name. Multiple files can be dropped at once by separating their names with a comma (,). If file_name was not found or could not be dropped (due to unknown/unexpected reasons), no subsequent files are dropped, and an error is raised.

Parameter(s)

file_name – mandatory string that specifies the name of the file to drop (i.e. delete).

Return

Nothing

Example(s)

# create two HDF5 files named "my_file0.h5" and "my_file1.h5" within the working directory currently in use
CREATE FILE my_file0.h5, my_file1.h5

# create two HDF5 files named "my_file2.h5" and "my_file3.h5" within a directory named "my_directory"
CREATE FILE my_directory/my_file2.h5, my_directory/my_file3.h5

# drop (i.e. delete) file "my_file1.h5" within the working directory currently in use 
DROP FILE my_file1.h5

# drop (i.e. delete) file "my_file2.h5" within directory "my_directory" 
DROP FILE my_directory/my_file2.h5