> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendrealm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute audiences delete

> Opt-in imports/data rollout. Explicit project, current membership, role and scope are required. Preparations expire after ten minutes; execution rechecks authorization and resource versions and persists an idempotent receipt. Existing keys receive no new scopes.

Requires the opt-in imports/data rollout and an explicitly authorized project. See [agent data workflows](/tutorials/agent-data-operations) for review, idempotency, export pagination, and suppression safeguards.


## OpenAPI

````yaml api-reference/openapi.json POST /audiences/actions/delete/execute
openapi: 3.0.1
info:
  title: Sendrealm API
  description: >-
    API for email, push, audience resources, domains, campaign drafts,
    templates, events, topics, and automations
  license:
    name: MIT
  version: 0.3.0
servers:
  - url: https://api.sendrealm.com
security:
  - bearerAuth: []
paths:
  /audiences/actions/delete/execute:
    post:
      tags:
        - Agent data
      summary: Execute audiences delete
      description: >-
        Opt-in imports/data rollout. Explicit project, current membership, role
        and scope are required. Preparations expire after ten minutes; execution
        rechecks authorization and resource versions and persists an idempotent
        receipt. Existing keys receive no new scopes.
      operationId: audiences_delete
      parameters:
        - name: X-Sendrealm-Project-Id
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/McpPreparedExecution'
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  data:
                    $ref: '#/components/schemas/McpDataReceipt'
                required:
                  - status
                  - data
                additionalProperties: false
                x-sendrealm-mcp-contract: true
        '400':
          description: Invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Personal key or session required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Scope, membership or role denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Feature or owned resource unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Expired/stale preparation or conflicting idempotency key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    McpPreparedExecution:
      type: object
      properties:
        prepared_action_id:
          type: string
          format: uuid
        idempotency_key:
          type: string
          minLength: 1
          maxLength: 160
      additionalProperties: false
      x-sendrealm-mcp-contract: true
      required:
        - prepared_action_id
        - idempotency_key
    McpDataReceipt:
      type: object
      properties:
        receipt_id:
          type: string
          format: uuid
        resource_type:
          type: string
          enum:
            - contacts
            - audiences
            - properties
            - topics
            - suppressions
        ids:
          type: array
          items:
            type: string
            format: uuid
        changed:
          type: integer
          minimum: 0
        automation_effects:
          type: string
          enum:
            - suppress
            - trigger
      required:
        - receipt_id
        - resource_type
        - ids
        - changed
        - automation_effects
      additionalProperties: false
      x-sendrealm-mcp-contract: true
    Error:
      type: object
      required:
        - status
        - error
      properties:
        status:
          type: integer
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              $ref: '#/components/schemas/JsonValue'
            issues:
              type: array
              items:
                $ref: '#/components/schemas/ValidationIssue'
    JsonValue:
      oneOf:
        - type: string
          nullable: true
        - type: number
        - type: boolean
        - type: object
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
        - type: array
          items:
            $ref: '#/components/schemas/JsonValue'
    ValidationIssue:
      type: object
      required:
        - code
        - path
        - message
      properties:
        code:
          type: string
        path:
          type: string
          nullable: true
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Integration key for backend workloads, or a scoped personal key
        (sr_user_) for account discovery and supported project operations. MCP
        accepts only personal keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.