apagar todos os registos da tabela
DELETE FROM table_name;
apagar todas as linhas da tabela mysql
-- Quick, no possible rollback
TRUNCATE TABLE my_table;
-- With rollback
DELETE FROM my_table;
COMMIT;
como apagar os dados de uma tabela em sql
DELETE FROM table_name; //will delete the table data without affecting the table structue