Deleting a Partition from a Level-2 Partitioned Table
You can run ALTER TABLE DROP PARTITION to delete a range or list partition from a level-2 partitioned table. The database deletes the partition and all level-2 partitions under the partition.
ALTER TABLE range_list_sales DROP PARTITION date_202005 UPDATE GLOBAL INDEX;
ALTER TABLE range_list_sales DROP PARTITION FOR ('2020-05-08');

- If a level-2 partitioned table has only one partition, the partition cannot be deleted by running the ALTER TABLE DROP PARTITION command.
- If the level-1 partition policy of a level-2 partitioned table is HASH, the partition cannot be deleted running the ALTER TABLE DROP PARTITION command.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.