MYSQL
June 3, 2026 1 min read

Record Deletion in MYSQL: Mastering Delete Queries for Removing Data

HS
HEMANT SINGH
Technical Writer & Educator

DELETE query is used to delete records from the table.

For this command, the given table will be taken as an example.

Table: users

idfirst_namelast_nameemail
1RamSinghram@gmail.com
2KrishnaSinghkrishna@gmail.com
3AjaySinghajay@gmail.com

 

Delete all records

DELETE FROM users;

Table: users

idfirst_namelast_nameemail

 

Delete specific records

DELETE FROM users WHERE id=2;

Table: users

idfirst_namelast_nameemail
1RamSinghram@gmail.com
3AjaySinghajay@gmail.com