Drops one or more partitions from an existing table.
Similar to dropping columns, dropping of partitions is a non-blocking and non-waiting operation. While atomic for single partitions, dropping multiple partitions is in itself non-atomic. The operation will exit on the first failure and will not continue through a list of partitions if one fails to be dropped.
The most recent (i.e. currently active) partition cannot be removed
DROP PARTITION with care as QuestDB cannot recover data from dropped
The partition name must match the name of the directory for the given partition. The naming convention for partition directories is as follows:
|Table Partition||Partition format|
Drops partitions based on a boolean expression on the designated timestamp column.