To compact PST files, open Outlook and follow these steps:
Click on File in the top menu. Select Account Settings and then choose 'Account Settings' again from the dropdown. Go to the Data Files tab. Select the PST file you want to compact and click on Settings. Click on Compact Now.