functionality to delete comments (guide 8)