Delete Users
DELETE/api/v31.02/users/:id
x-prisma-cloud-target-env: {"permission":"userManagement","saas":false,"self-hosted":true}
x-public: true
Deletes a user from the system.
The URL parameter {id}
maps to username
.
The username
for each user can be retrieved from the GET /api/v<VERSION>/users
endpoint.
To invoke this endpoint in the Console UI:
- Navigate to Manage > Authentication > Users.
- In a table row, click the Actions button for the user to update.
- Click the Delete button to open the delete confirmation window.
- Click the Delete User button to delete the user.
Note: You can not delete the user for the current logged in account.
cURL Request
The following cURL command deletes user ID
from the system.
$ curl -k \
-u <USER> \
-H 'Content-Type: application/json' \
-X DELETE \
https://<CONSOLE>/api/v<VERSION>/users/<ID>
Note: No response will be returned upon successful execution.
Request
Path Parameters
id stringrequired
Responses
- 200
- default
OK
- curl
- python
- go
- nodejs
- csharp
- php
- CURL
curl -L -X DELETE 'https://pan.dev/api/v31.02/users/:id'