We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 873df84 commit dfab7e4Copy full SHA for dfab7e4
videodb/collection.py
@@ -38,6 +38,15 @@ def __repr__(self) -> str:
38
f"description={self.description})"
39
)
40
41
+ def delete(self) -> None:
42
+ """Delete the collection
43
+
44
+ :raises InvalidRequestError: If the delete fails
45
+ :return: None if the delete is successful
46
+ :rtype: None
47
+ """
48
+ self._connection.delete(path=f"{ApiPath.collection}/{self.id}")
49
50
def get_videos(self) -> List[Video]:
51
videos_data = self._connection.get(
52
path=f"{ApiPath.video}",
0 commit comments