PostgreSQL DELETE
Overview
The DELETE statement removes rows from a table. This chapter covers how to delete specific rows and use conditions.
Basic DELETE
DELETE with RETURNING
DELETE with USING
TRUNCATE TABLE
Summary
DELETE key points:
- Use WHERE clause to specify rows to delete
- Use RETURNING clause to get deleted values
- Use TRUNCATE for faster table clearing