Added code to clean up soft deleted files after each sync