cleanup delete method