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 f6fe6a5 commit ed55b70Copy full SHA for ed55b70
nc_py_api/users.py
@@ -206,6 +206,10 @@ def enable(self, user_id: str) -> None:
206
def disable(self, user_id: str) -> None:
207
"""Disables user on the Nextcloud server."""
208
self._session.ocs("PUT", f"{self._ep_base}/{user_id}/disable")
209
+
210
+ def wipe(self, user_id: str) -> None:
211
+ """Disconnects user from the Nextcloud server and deletes all local data stored on the user's devices."""
212
+ self._session.ocs("POST", f"/ocs/v2.php/cloud/users/{user_id}/wipe")
213
214
def resend_welcome_email(self, user_id: str) -> None:
215
"""Send welcome email for specified user again."""
0 commit comments