Purpose
This statement is used to delete a tablespace. It can only be successfully executed when there are no tables in the tablespace.
Syntax
DROP TABLESPACE tablespace_name
[ENGINE [=] engine_name];
Parameters
| Parameter | Description |
|---|---|
| tablespace_name | The name of the tablespace to be deleted. |
| ENGINE | The storage engine used by the tablespace. This keyword is supported in the current version, but the feature is not yet available. |
Examples
Delete the tablespace001 tablespace.
DROP TABLESPACE tablespace001;
