Skip to content

Commit 8a37b69

Browse files
authored
Add deleteshare method
1 parent 2cd1377 commit 8a37b69

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

filecloudapi/fcserver.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,13 @@ def quickshare(self, sharelocation: str, adminproxyuserid: str = "") -> FCShare:
959959
str_to_bool(resp.findtext("./share/allowpublicuploadonly", "")),
960960
)
961961

962+
def deleteshare(self, share :FCShare) -> None:
963+
resp = self._api_call(
964+
"/core/deleteshare",
965+
{"shareid": share.shareid},
966+
)
967+
self._raise_exception_from_command(resp)
968+
962969
def getshareforpath(self, path: str, adminproxyuserid: str = "") -> FCShare:
963970
"""
964971
Share 'path'

0 commit comments

Comments
 (0)