# Delete Workflow Action

**URL:** <https://community.hubspot.com/t/delete-workflow-action/103449>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [March 26, 2024, 1:06pm UTC](https://community.hubspot.com/t/delete-workflow-action/103449 "2024-03-26T13:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer2024](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/developer2024/32/82662_2.png) [@developer2024](https://community.hubspot.com/u/developer2024)\
**Post date:** [March 26, 2024, 1:06pm UTC](https://community.hubspot.com/t/delete-workflow-action/103449/1 "2024-03-26T13:06:19Z")

</div>

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

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

```

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

```lia-code-sample
{
 "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?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 26, 2024, 6:23pm UTC](https://community.hubspot.com/t/delete-workflow-action/103449/2 "2024-03-26T18:23:53Z")

</div>

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
