• Use the DBCC SHRINKFILE with the EMPTYFILE argument command

    dbcc ShrinkFile (mydatabase_Log_2, EmptyFile)

    or you can take the help of this link: http://www.sqlservercentral.com/blogs/jeffrey_yao/2009/08/10/error-5042-cannot-remove-a-file-because-it-is-not-empty/