# 6.4.15 DROP FILE

Part of: [6 Language](6-language.md) › [6.4 Data Definition Language (DDL)](6-4-data-definition-language-ddl.md)

### 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)

```hdfql
# 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
```
