DROP DIRECTORY Syntax
Parameters
<directory name>
<directory name>
Name of the directory to remove.
IF EXISTS
IF EXISTS
Optional error-suppression clause; if specified, no error will be returned if the given
directory does not exist.
WITH OPTIONS
WITH OPTIONS
Optional indicator that a comma-delimited list of option/value assignments will follow.
| Option | Description |
|---|---|
recursive | Whether to delete all files contained within the directory:
|
Examples
To delete a directory,kbackup:
DROP DIRECTORY Example
kdata, and all files in it, suppressing the error
if it doesn’t exist:
DROP DIRECTORY with Files Example