MuleSoft · Arazzo Workflow

MuleSoft Tear Down Environment

Version 1.0.0

Delete an application from an environment, then delete the environment itself.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub API GatewayAPI ManagementEnterpriseIntegrationArazzoWorkflows

Provider

mulesoft

Workflows

teardown-environment
Remove an application and then delete its environment.
Deletes a CloudHub application, lists remaining applications to confirm the environment is empty, and deletes the environment.
3 steps inputs: appDomain, bearerToken, environmentId, orgId outputs: appDeleteStatusCode, environmentDeleteStatusCode, remainingApplications
1
deleteApplication
Delete the CloudHub application running in the environment to free its resources.
2
confirmEmpty
List the applications in the environment to confirm it is empty before deleting it.
3
deleteEnvironment
Delete the now-empty environment from the organization.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: MuleSoft Tear Down Environment
  summary: Delete an application from an environment, then delete the environment itself.
  description: >-
    Cleans up an Anypoint environment and its workloads. The workflow deletes a
    CloudHub application running in the environment, confirms no applications
    remain by listing them, and then deletes the environment from the
    organization. Every step spells out its request inline so the flow can be
    read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: applicationsApi
  url: ../openapi/mulesoft-applications-api-openapi.yml
  type: openapi
- name: environmentsApi
  url: ../openapi/mulesoft-environments-api-openapi.yml
  type: openapi
workflows:
- workflowId: teardown-environment
  summary: Remove an application and then delete its environment.
  description: >-
    Deletes a CloudHub application, lists remaining applications to confirm the
    environment is empty, and deletes the environment.
  inputs:
    type: object
    required:
    - bearerToken
    - orgId
    - environmentId
    - appDomain
    properties:
      bearerToken:
        type: string
        description: Anypoint Platform bearer access token.
      orgId:
        type: string
        description: The organization id that owns the environment.
      environmentId:
        type: string
        description: The environment id to tear down.
      appDomain:
        type: string
        description: The CloudHub domain of the application to delete first.
  steps:
  - stepId: deleteApplication
    description: >-
      Delete the CloudHub application running in the environment to free its
      resources.
    operationId: deleteApplication
    parameters:
    - name: domain
      in: path
      value: $inputs.appDomain
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: X-ANYPNT-ORG-ID
      in: header
      value: $inputs.orgId
    - name: X-ANYPNT-ENV-ID
      in: header
      value: $inputs.environmentId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      deletedStatusCode: $statusCode
  - stepId: confirmEmpty
    description: >-
      List the applications in the environment to confirm it is empty before
      deleting it.
    operationId: listApplications
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: X-ANYPNT-ORG-ID
      in: header
      value: $inputs.orgId
    - name: X-ANYPNT-ENV-ID
      in: header
      value: $inputs.environmentId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      remainingApplications: $response.body
  - stepId: deleteEnvironment
    description: >-
      Delete the now-empty environment from the organization.
    operationId: deleteEnvironment
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.bearerToken"
    - name: orgId
      in: path
      value: $inputs.orgId
    - name: envId
      in: path
      value: $inputs.environmentId
    successCriteria:
    - condition: $statusCode == 204
    outputs:
      deletedEnvironmentStatusCode: $statusCode
  outputs:
    appDeleteStatusCode: $steps.deleteApplication.outputs.deletedStatusCode
    remainingApplications: $steps.confirmEmpty.outputs.remainingApplications
    environmentDeleteStatusCode: $steps.deleteEnvironment.outputs.deletedEnvironmentStatusCode

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/mulesoft-teardown-environment-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.