When you delete records using the DELETE command, the space consumed by those records isn't necessarily returned to the operating system immediately. The space is marked as free and will be reused for new records, but if you want to release the unused space to the operating system, you can use the DBCC SHRINKDATABASE
or DBCC SHRINKFILE
command.
For a specific file:
DBCC SHRINKFILE (YourLogicalFileName, target_size_in_MB)
For the entire database:
DBCC SHRINKDATABASE (YourDatabaseName, target_percentage)