diff --git a/mwdblib/object.py b/mwdblib/object.py index 389f67b..68f9552 100644 --- a/mwdblib/object.py +++ b/mwdblib/object.py @@ -387,6 +387,16 @@ def remove_attribute(self, attribute_id: int) -> None: ) self._expire("attributes") + def remove_comment(self, comment_id: int) -> None: + """ + Remove specific comment from object + + :param comment_id: Comment id + :type comment_id: int + """ + self.api.delete(f"object/{self.id}/comment/{comment_id}") + self._expire("comments") + @add_attribute.fallback("2.0.0") def _add_attribute_fallback(self, key: str, value: str) -> None: self._add_metakey(key, value)