A newer version of this documentation is available. Use the version menu above to view the most up-to-date release of the Greenplum 5.x documentation.
Removes a tablespace.
DROP TABLESPACE [IF EXISTS] tablespacename
DROP TABLESPACE removes a tablespace from the system.
A tablespace can only be dropped by its owner or a superuser. The tablespace must be empty of all database objects before it can be dropped. It is possible that objects in other databases may still reside in the tablespace even if no objects in the current database are using the tablespace.
- IF EXISTS
- Do not throw an error if the tablespace does not exist. A notice is issued in this case.
- The name of the tablespace to remove.
Remove the tablespace mystuff:
DROP TABLESPACE mystuff;
DROP TABLESPACE is a Greenplum Database extension.