Implemented the deletion of labels.