implemented comment deletion logic