Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add deprecation note for DELETE /users (all users) #217

Merged
merged 1 commit into from
Jun 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions auth0/v3/management/users.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .rest import RestClient
import warnings


class Users(object):
@@ -87,9 +88,11 @@ def create(self, body):

def delete_all_users(self):
"""Deletes all users (USE WITH CAUTION).
Deprecation: This endpoint is no longer available server-side.

Args:
"""
warnings.warn("DELETE all users endpoint is no longer available.", DeprecationWarning)
return self.client.delete(self._url())

def get(self, id, fields=None, include_fields=True):