Question: how to shrink ldf file?
Answer: To shrink an ldf file, you use a command called DBCC SHRINKFILE (documented here). You can do this in SSMS by right-clicking the database, select "Tasks", "Shrink" and "Files". I recommend that you script the command into a query window and execute from there.