Write removed file to temp directory