APIs & Integrations

developer2024
Participant

Delete Workflow Action

I have been trying to delete two workflow actions from my app with the following endpoint:

DELETE
/automation/v4/actions/{appId}/{definitionId}

However, I have not been able to, I always check this error in both: 

 

{
    "status": "error",
    "message": "Unable to archive definition",
    "correlationId": "2dfb9e5f-6e1c-494b-8e70-2ceca8f2d0a5",
    "errors": [
        {
            "subCategory": "ActionDefinitionValidationError.DEFINITION_IN_USE",
            "message": "Deletion of an in-use definition is currently not allowed. The definition 1-xxxxxx is being used in 3 portal(s). Please remove the instance(s) and send the DELETE request again or contact HubSpot developer support.",
            "context": {
                "actionTypeId": [
                    "1-xxxxx"
                ],
                "portalCount": [
                    "3"
                ]
            }
        }
    ],
    "category": "VALIDATION_ERROR"
}

 

 

I urgently need to remove these actions from my application so that clients do not get confused and use them.

Is it possible to know the portalId that they are using?

0 Upvotes
1 Reply 1
Jaycee_Lewis
Community Manager
Community Manager

Delete Workflow Action

Hi, there! I found several support cases for this exact issue. If you have access to support, I suggest reaching out to our support team and let them know you aren't looking for coding help, but need to get the portal IDs where your app is installed. The other suggestion I found there was to go through all your portals and app test accounts and make sure you don't have your app installed there. 

 

Talk soon! — Jaycee







HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.


Learn More.





Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes