DROP STAGE {FILE | FOLDER}
On this page
Deletes a file or folder at the specified path within a Stage.
Syntax
DROP STAGE {FILE | FOLDER} '<stage_path>'
[ { IN GROUP { ID '<deployment_ID>' | '<deployment_name>' } | IN { ID '<deployment_ID>' | '<deployment_name>' } } ]
[RECURSIVE]
Arguments
-
stage_
: The path to the file or folder in the Stage.path Folder paths must end with a trailing /
. -
deployment_
,ID deployment_
: The ID or name of the deployment (workspace group) in which the Stage is attached.name
Remarks
-
The
IN
andIN GROUP
clauses specify the ID or the name of the deployment in which the Stage is attached. -
To delete a folder, use the
FOLDER '<stage_
clause.path>' . . . [RECURSIVE] The path must end with a trailing /
. -
The
RECURSIVE
clause is only supported in theDROP STAGE FOLDER
command. -
If the
RECURSIVE
clause is specified, the specified folder is deleted recursively, i.e. , the contents of the specified folder are deleted before the folder itself is deleted. -
To delete a file, use the
FILE <stage_
clause.path> . . .
Examples
-
The following command deletes a file in the Stage attached to a deployment named s2wsg:
DROP STAGE FILE '/data/stats.csv' IN 's2wsg'; -
The following command deletes a folder in the Stage attached to a deployment named s2wsg:
DROP STAGE FOLDER '/data/' IN 's2wsg' RECURSIVE;
Last modified: February 13, 2025