Skip to contents

Soft-deletes the currently authenticated user's account. The last admin account cannot be deleted.

Usage

api_user_delete(credentials)

Arguments

credentials

An ApiCredentials object from api_login().

Value

A named list with the API response message.

See also

api_login() to retrieve credentials.

Examples

if (FALSE) { # \dontrun{
creds <- api_login("https://api.example.com", "user@example.com", "password")
api_user_delete(creds)
} # }