You can shrink the database file by using the following method.
DECLARE @strDatabaseName nvarchar(255)
SET @strDatabaseName = "YourDatabaseName"
DBCC SHRINKDATABASE (@strDatabaseName, 0)
Working in both SQL 2005 & 2008.
For Your InformationHow to shrink the tempdb database in SQL Server
BTW, after this comment
], I have created this Tip/Trick. Thanks to him.