remove temporary directory for upload