automation-hub
latest
false
- Open API
- Introduction to Automation Hub API
- Introduction to Automation Hub API (Automation Cloud Public Sector)
- API References
- Generate your Token from Automation Hub
- Authentication to the Automation Hub API
- Authentication to the Automation Hub API (Automation Cloud Public Sector)
- Add users in bulk to Automation Hub using OpenAPI
- Bulk edit users in Automation Hub using OpenAPI
- Delete an automation using OpenAPI
- Retrieve Automation Idea in Idea Phase Awaiting Review Status
- Retrieve the Cost Benefit Analysis for a Specific Idea
- Update Automation Idea Phase and Status
- Retrieve a User Account
- Update Account Details for Employees from Automation Hub
- Inactivate User Accounts that are Not Part of the Company
- Power BI Integration Video Tutorial
- Service Now Outbound Integration Video Tutorial
- Input for Automation Pipeline
- Input for Submission Type
- Input for Phase
- Input for Status
- Input for Phase and Status Update
- Input for Business Unit
- Input for Applications
- Input for Category
- Input for Cost Benefit Analysis
- Input for High Level Assessment
- Input for Detailed Assessment
- Input for Automation Idea Creation Date
- Input for Users
- Input for User Status
- User Status Table
- Input for Collaborators
- Output Dictionary
- Automation Hub Open API Power Query Data Parsing
- Automation Hub Custom Connector
Automation Hub api guide
Delete an automation from Automation Hub by calling the DELETE /api/v1/openapi/automations/{id} endpoint.
Prerequisites
- You have an active Automation Hub API token. For instructions, see Generate your Token from Automation Hub.
- You know the numeric ID of the automation you want to delete. You can retrieve it from the automation's URL in Automation Hub or via a
GET /api/v1/openapi/automationscall. - You have the System Admin or Program Manager role.
Delete an automation
-
Construct the request URL using the automation ID:
DELETE https://{baseUrl}/api/v1/openapi/automations/{id}DELETE https://{baseUrl}/api/v1/openapi/automations/{id} -
Include the required authentication header:
Header Value x-ah-openapi-app-keyYour Automation Hub API token x-ah-openapi-authopenapiContent-Typeapplication/json -
Optionally include a comment in the request body:
{ "comment": "Removing duplicate entry." }{ "comment": "Removing duplicate entry." } -
Send the request.
Results
A successful deletion returns HTTP 200. The automation is permanently removed from the tenant and no longer appears in Automation Hub.
Error codes
| Code | Meaning |
|---|---|
400 | Bad request — the request body is malformed or a required field is invalid. |
404 | Not found — no automation with the specified ID exists in the tenant. |
Example: delete multiple automations using a script
Use the following PowerShell script to delete a list of automations by ID:
$baseUrl = "https://<your-tenant>.automation-hub.uipath.com"
$appKey = "<your-api-token>"
$ids = @(1001, 1002, 1003)
$comment = "Bulk cleanup"
foreach ($id in $ids) {
$response = Invoke-RestMethod `
-Method Delete `
-Uri "$baseUrl/api/v1/openapi/automations/$id" `
-Headers @{
"x-ah-openapi-app-key" = $appKey
"x-ah-openapi-auth" = "openapi"
"Content-Type" = "application/json"
} `
-Body (ConvertTo-Json @{ comment = $comment })
Write-Host "Deleted $id — Status: $($response.StatusCode)"
}
$baseUrl = "https://<your-tenant>.automation-hub.uipath.com"
$appKey = "<your-api-token>"
$ids = @(1001, 1002, 1003)
$comment = "Bulk cleanup"
foreach ($id in $ids) {
$response = Invoke-RestMethod `
-Method Delete `
-Uri "$baseUrl/api/v1/openapi/automations/$id" `
-Headers @{
"x-ah-openapi-app-key" = $appKey
"x-ah-openapi-auth" = "openapi"
"Content-Type" = "application/json"
} `
-Body (ConvertTo-Json @{ comment = $comment })
Write-Host "Deleted $id — Status: $($response.StatusCode)"
}
For more information, see the API References page.