create, deliver, and remove file of current doc