added function to delete temp map