diff --git a/videodb/__about__.py b/videodb/__about__.py index 8791897..268a871 100644 --- a/videodb/__about__.py +++ b/videodb/__about__.py @@ -1,7 +1,7 @@ """ About information for videodb sdk""" -__version__ = "0.2.7" +__version__ = "0.2.8" __title__ = "videodb" __author__ = "videodb" __email__ = "contact@videodb.io" diff --git a/videodb/collection.py b/videodb/collection.py index fa9c154..80b0508 100644 --- a/videodb/collection.py +++ b/videodb/collection.py @@ -38,6 +38,15 @@ def __repr__(self) -> str: f"description={self.description})" ) + def delete(self) -> None: + """Delete the collection + + :raises InvalidRequestError: If the delete fails + :return: None if the delete is successful + :rtype: None + """ + self._connection.delete(path=f"{ApiPath.collection}/{self.id}") + def get_videos(self) -> List[Video]: videos_data = self._connection.get( path=f"{ApiPath.video}",