deleting file on cancel