Legacy Dev Forum Posts

 View Only

Sign Up

Batch/Bulk delete user prompts

  • 1.  Batch/Bulk delete user prompts

    Posted 06-05-2025 18:24

    Sriram_L | 2023-01-19 15:07:47 UTC | #1

    Hi Team,

    We are trying to bulk delete user prompts with the help of the DELETE endpoint /api/v2/architect/prompts.

    While running the API with the input of comma separated prompt IDs, we are getting a JobID. But where exactly should we run this Job ID ?

    There's only one Job endpoint in the Architect category, but that is related to flows.

    Please help us locating the Job endpoint which should be ran, for batch-delete user prompts.

    Thanks and Regards, Sriram L


    jacobshaw | 2023-01-20 14:35:58 UTC | #2

    Hi @Sriram_L You don't need to use any other API endpoints to start the delete job. It gets run asynchronously when you call DELETE /api/v2/architect/prompts. You can check if the prompts were deleted successfully using GET /api/v2/architect/prompts and passing in the names of the prompts as query parameters


    Sriram_L | 2023-01-20 15:05:46 UTC | #3

    Hi Jacob,

    Thanks for your response.

    I've been trying the same and just found the error response.

    "errorMessage": "Cannot delete prompt '<promptname>' since it contains prompt resources.", "errorCode": "ARCHITECTPROMPTHASRESOURCES",

    Is this expected from the batch delete endpoint. Can we not able to delete the prompts if it has a valid resource ?

    Thanks and Regards, Sriram L


    jacobshaw | 2023-01-20 15:25:46 UTC | #4

    It sounds like you will need to delete the resources before you can delete the prompts. You can delete the resources using this API resource: DELETE /api/v2/architect/prompts/{promptId}/resources/{languageCode} Or this one for audio resources: DELETE /api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio


    system | 2023-02-20 15:26:24 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 18055