How to Use SQL Server delete from Statement

To delete rows in a SQL Server table, use the DELETE statement:

delete from sessions where id = 10;

The WHERE clause is optional, but you'll usually want it, unless you really want to delete every row from the table.

delete from sessions;
database icon
Shared queries and folders ✅ Version history ✅ One-click connection to SQL Server ✅
Get more done, together, with PopSQL and SQL Server