buffer deleting