DELETE
Complete guide to deleting data in MariaDB. Complete DELETE syntax with WHERE filtering, JOIN operations, and safety considerations for production use.
Syntax
DELETE [LOW_PRIORITY] [QUICK] [IGNORE]
FROM tbl_name [PARTITION (partition_list)]
[FOR PORTION OF PERIOD FROM expr1 TO expr2]
[AS alias] -- from MariaDB 11.6
[WHERE where_condition]
[ORDER BY ...]
[LIMIT row_count]
[RETURNING select_expr
[, select_expr ...]]DELETE [LOW_PRIORITY] [QUICK] [IGNORE]
tbl_name[.*] [, tbl_name[.*]] ...
FROM table_references
[WHERE where_condition]DELETE [LOW_PRIORITY] [QUICK] [IGNORE]
FROM tbl_name[.*] [, tbl_name[.*]] ...
USING table_references
[WHERE where_condition]Description
Option
Description
AS
PARTITION
FOR PORTION OF
RETURNING
Same Source and Target Table
DELETE HISTORY
Examples
Deleting from the Same Source and Target
See Also
Last updated
Was this helpful?

