/policyengine/v1/applications: DELETE
Deletes an application.
The following table shows which roles can access this REST API endpoint:
Data admin | CollectionAdmin | Data user | Admin | Service user |
---|---|---|---|---|
✓ | X | Χ | Χ | Χ |
Synopsis of the request URL
curl -k -H “Authorization: Bearer <_token_>” -X DELETE
https://<spectrum_discover_host>/policyengine/v1/applications/<application_name>
Supported request types and response formats
Supported request types:
- DELETE
Examples
Deleting an application involves the following steps.
- Obtain an auth token by using credentials of the data admin user as shown in the following
example:
curl -k https://<spectrum_discover_host>/auth/v1/token -u "<user_name>:<password>" -v
For a valid user, the auth token is returned in the
“X-Auth-Token”
response header. - Submit the following
request:
curl -k https://<spectrum_discover_host>/policyengine/v1/applications/<application_name> " -X DELETE -H “Authorization: Bearer <_token_> ”
Response:
204 No Content