drop_sequence (7) - Linux Man Pages
drop_sequence: remove a sequence
NAMEDROP SEQUENCE - remove a sequence
DROP SEQUENCE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
- IF EXISTS
- Do not throw an error if the sequence does not exist. A notice is issued in this case.
- The name (optionally schema-qualified) of a sequence.
- Automatically drop objects that depend on the sequence.
- Refuse to drop the sequence if any objects depend on it. This is the default.
To remove the sequence serial:
DROP SEQUENCE serial;