DROP SPACE¶
DROP SPACE deletes the specified graph space and everything in it.
Prerequisites¶
Only the God role can use the DROP SPACE statement. For more information, see AUTHENTICATION.
Syntax¶
DROP SPACE [IF EXISTS] <graph_space_name>;
You can use the IF EXISTS keywords when dropping spaces. These keywords automatically detect if the related graph space exists. If it exists, it will be deleted. Otherwise, no graph space will be deleted.
Legacy version compatibility
In NebulaGraph versions earlier than 3.1.0, the DROP SPACE statement does not remove all the files and directories from the disk by default.
Caution
BE CAUTIOUS about running the DROP SPACE statement.
Last update:
March 13, 2023