PostgreSQL – How to Drop a Sequence
You can drop a sequence using the DROP SEQUENCE command. Here’s the basic syntax to drop a sequence: DROP SEQUENCE [ IF EXISTS ] sequence_name [, …] [ CASCADE | RESTRICT ]; Here are some examples of using the DROP SEQUENCE command: Drop a sequence without checking for dependencies: DROP SEQUENCE my_sequence; Drop a sequence…