Skip to main content
Removes an existing KiFS directory.
DROP DIRECTORY Syntax

Parameters

<directory name>

Name of the directory to remove.

IF EXISTS

Optional error-suppression clause; if specified, no error will be returned if the given directory does not exist.

WITH OPTIONS

Optional indicator that a comma-delimited list of option/value assignments will follow.
OptionDescription
recursiveWhether to delete all files contained within the directory:
  • false (default) - only drop the directory if empty; return an error if the directory contains files
  • true - drop the directory and all files in it

Examples

To delete a directory, kbackup:
DROP DIRECTORY Example
To delete a directory, kdata, and all files in it, suppressing the error if it doesn’t exist:
DROP DIRECTORY with Files Example