removes temp doc