Cleanup platform file