Removing ams file