Use the sp_MSforeachtable stored procedure like:
USE MyDatabase
EXEC sp_MSforeachtable 'TRUNCATE TABLE ?'
Be aware that doing this will truncate all user tables' data and erase ALL of it. To perform the same as a deletion in the event that TRUNCATE is not possible due to foreign keys or another issue.
USE MyDatabase
EXEC sp_MSforeachtable 'DELETE FROM ?'