Delete Project by Id - DELETE /projects/{id} (v8.7.0)
Delete a specific project with all related scans according to Project Id.
Usage:
- GET /projects and get details of all projects
- DELETE /projects/{id} and delete project by Id
URL
/cxrestapi/projects/{id}
Method:
DELETE
Media Type (header):
Authorization: Bearer <access token value>
Content-Type: application/json;v=1.0
cxOrigin: {request_origin}
Parameters
Required:
id=[integer] – Unique Id of the project
deleteProjectDto=[body] - A set of rules that specifies how the project should be deleted:
deleteRunningScans=[boolean] – Specifies whether running scans are to be deleted. Options are false/true. Default=False, if not specified.
Success Response:
Code: 204 Accepted
Error Response:
Code: 400 Bad Request
Code: 404 Not Found
Sample Response:
no content
Notes:
Deletes a specific project with all related scans according to Project Id. If the request fails, it returns an error response.
Read more: