add delete buffer method