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 b383d23 commit 85fd458Copy full SHA for 85fd458
nc_py_api/users.py
@@ -207,6 +207,10 @@ 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."""
216
self._session.ocs("POST", f"{self._ep_base}/{user_id}/welcome")
0 commit comments