# Delete resources Deletes destroyed resources for a workspace. Endpoint: DELETE /iacm/api/orgs/{org}/projects/{project}/workspaces/{workspace}/resources Version: 1.0 Security: x-api-key ## Path parameters: - `org` (string, required) Org is the organisation identifier. Example: "5n" - `project` (string, required) Project is the project identifier. Example: "rzd" - `workspace` (string, required) Workspace identifier Example: "Et et laboriosam enim rerum quia." ## Header parameters: - `Harness-Account` (string, required) Account is the internal customer account ID. Example: "p3d" ## Request fields (application/json): - `resources` (array, required) Example: [{"module":"Accusantium aspernatur rerum dicta magni velit eveniet.","name":"Pariatur itaque sed ut.","path_id":"Id eum ab voluptatem officiis omnis.","provider":"Pariatur ut aperiam fugiat qui architecto.","type":"Et consequatur voluptas est temporibus minima."},{"module":"Accusantium aspernatur rerum dicta magni velit eveniet.","name":"Pariatur itaque sed ut.","path_id":"Id eum ab voluptatem officiis omnis.","provider":"Pariatur ut aperiam fugiat qui architecto.","type":"Et consequatur voluptas est temporibus minima."}] - `resources.module` (string, required) Module path Example: "Error ipsum tenetur corrupti impedit voluptatibus ut." - `resources.name` (string, required) Resource name Example: "Aut doloribus aut non." - `resources.path_id` (string, required) Path id Example: "Quia tempora qui." - `resources.provider` (string, required) Provider name Example: "Aut ea nulla reiciendis unde perspiciatis." - `resources.type` (string, required) Resource type Example: "Est fuga inventore eum natus." ## Response 200 fields (application/json): - `results` (array, required) Example: [{"error":"Libero iste sit quibusdam doloremque.","module":"Neque cum consectetur ut nulla.","name":"Laborum facilis vel illo sit aut ad.","provider":"Suscipit hic voluptatem beatae.","status":"deleted","type":"Corporis voluptatem velit non fuga."},{"error":"Libero iste sit quibusdam doloremque.","module":"Neque cum consectetur ut nulla.","name":"Laborum facilis vel illo sit aut ad.","provider":"Suscipit hic voluptatem beatae.","status":"deleted","type":"Corporis voluptatem velit non fuga."}] - `results.error` (string) Example: "Unde eius vel sit." - `results.module` (string, required) Example: "Minima error maiores commodi odio et est." - `results.name` (string, required) Example: "Eligendi dolor laborum." - `results.provider` (string, required) Example: "Ea voluptas sequi ullam facilis." - `results.status` (string) Enum: "deleted", "skipped", "failed" - `results.type` (string, required) Example: "Vel soluta et." - `summary` (object, required) Summary of a resource delete operation Example: {"deleted":5458532290050438000,"failed":2833437884011917300,"skipped":3037293570130569700,"total":1213956509614055400} - `summary.deleted` (integer, required) Number of resources successfully deleted Example: 5458532290050438000 - `summary.failed` (integer, required) Number of resources that failed to delete Example: 2833437884011917300 - `summary.skipped` (integer, required) Number of resources skipped Example: 3037293570130569700 - `summary.total` (integer, required) Total number of resources processed Example: 1213956509614055400 ## Response 400 fields (application/vnd.goa.error): - `results` (array, required) Example: [{"error":"Libero iste sit quibusdam doloremque.","module":"Neque cum consectetur ut nulla.","name":"Laborum facilis vel illo sit aut ad.","provider":"Suscipit hic voluptatem beatae.","status":"deleted","type":"Corporis voluptatem velit non fuga."},{"error":"Libero iste sit quibusdam doloremque.","module":"Neque cum consectetur ut nulla.","name":"Laborum facilis vel illo sit aut ad.","provider":"Suscipit hic voluptatem beatae.","status":"deleted","type":"Corporis voluptatem velit non fuga."}] - `results.error` (string) Example: "Unde eius vel sit." - `results.module` (string, required) Example: "Minima error maiores commodi odio et est." - `results.name` (string, required) Example: "Eligendi dolor laborum." - `results.provider` (string, required) Example: "Ea voluptas sequi ullam facilis." - `results.status` (string) Enum: "deleted", "skipped", "failed" - `results.type` (string, required) Example: "Vel soluta et." - `summary` (object, required) Summary of a resource delete operation Example: {"deleted":5458532290050438000,"failed":2833437884011917300,"skipped":3037293570130569700,"total":1213956509614055400} - `summary.deleted` (integer, required) Number of resources successfully deleted Example: 5458532290050438000 - `summary.failed` (integer, required) Number of resources that failed to delete Example: 2833437884011917300 - `summary.skipped` (integer, required) Number of resources skipped Example: 3037293570130569700 - `summary.total` (integer, required) Total number of resources processed Example: 1213956509614055400 ## Response 401 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 403 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 404 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 408 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 409 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 423 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 499 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 500 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true ## Response 502 fields (application/vnd.goa.error): - `fault` (boolean, required) Is the error a server-side fault? - `id` (string, required) ID is a unique identifier for this particular occurrence of the problem. Example: "123abc" - `message` (string, required) Message is a human-readable explanation specific to this occurrence of the problem. Example: "parameter 'p' must be an integer" - `name` (string, required) Name is the name of this class of errors. Example: "bad_request" - `temporary` (boolean, required) Is the error temporary? - `timeout` (boolean, required) Is the error a timeout? Example: true