Skip to content
Get started

Delete user

users.delete(strusername)
DELETE/user/{username}

This can only be done by the logged in user.

ParametersExpand Collapse
username: str

Delete user

import os
from maxf_docs_dev_7 import MaxfDocsDev7

client = MaxfDocsDev7(
    api_key=os.environ.get("PETSTORE_API_KEY"),  # This is the default and can be omitted
)
client.users.delete(
    "username",
)
Returns Examples