We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

DELETE

When a user deletes their account on Twitter, or deletes a comment on a YouTube video, that data needs to be removed from its respective database.

DELETE Statement

A DELETE statement removes all records from a table that match the WHERE clause. As an example:

DELETE FROM employees
WHERE id = 251;

This DELETE statement removes all records from the employees table that have an id of 251!

Assignment

Samantha, one of our CashPal users, has opted to delete her account and stop using our app... which makes us sad. Anyways, we need to remove her record from the database!

Delete Samantha's record from the user table.