DELETE
FROM Helloworlds
This will delete all the data from the table. The table will contain no rows after you run this code. Unlike DROP TABLE, this preserves the table itself and its structure and you can continue to insert new rows into that table.
Another way to delete all rows in table is truncate it, as follow:
TRUNCATE TABLE HelloWords
Difference with DELETE operation are several:
IDENTITY field, this will be resetDELETE command you can associate a WHERE clause)Restrictions Of TRUNCATE
FOREIGN KEY referenceINDEXED VIEWTRANSACTIONAL REPLICATION or MERGE REPLICATION