Query Quest PostgreSQL Course

Delete safely

DELETE removes rows. A WHERE clause is your safety net: without one, DELETE removes every row in the table.

What you'll learn

RETURNING shows what was deleted, so you can inspect the outcome immediately.

Your mission

Delete the inactive player echo, leaving all other players in place.

Enable JavaScript to run SQL in the interactive lesson.