Table of Contents | ||
---|---|---|
|
Deleting own account permanently
You can delete your profile permanently from orbita by navigating to the profile options (click your name on the top right corner on the home screen) and selecting the Delete account button.
...
Click yes when prompted with a confirmation dialog.
...
Deleting users using API
As an admin user, you can delete a user permanently from Orbita using the APIs.
Note |
---|
For advanced users only. |
...
Prerequisites
Postman application
Admin login credentials to the environment
Familiarity using APIs. Refer,How do I use Rest APIs?.
Steps to follow
Log in as Admin user
Use the login API (Method: POST) to login to the environment
https://<domain>.orbita.cloud:8443/api/login
.In the Headers tab, add the Key as
Content-Type
and the Value asapplication/json
.In the Body tab, use the admin’s username and password and click “Send”.
Code Block { "username":"example@orbita.com", "password":"Password@123" }
You will receive a
token
in the response body.Copy the token for later use. Best way is to add the token to the environment variables.
...
Use the Delete API (Method: DELETE) to delete the user
https://<domain>.orbita.cloud:8443/api/users/<userid>?force=<true/false>
.
For hard delete -force=true
.
For soft delete -force=false
.In the Headers tab, add the Key as
Content-Type
and the Value asapplication/json
.
Add another Key asAuthorization
and set the Value asBearer <token>
You will get an empty body in the response with code 204.
You have successfully hard deleted the user.
Related Articles
...