---
updatedAt: 2026-01-16T14:36:36.000Z
agentTools:
  projectIndex: https://docs.labra.io/llms.txt
---

# Delete Referral (V2)

V2 endpoint for deleting a referral. Uses '/accounts/' path instead of '/partners/'.
Functionally identical to V1 delete endpoint but with updated path structure.


# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "AWS Engine Service - Referrals API",
    "description": "API endpoints for managing AWS referrals and opportunities. This service handles the creation,\nretrieval, update, and synchronization of referrals between CRM systems and AWS Partner Central.\n",
    "version": "2.0.0",
    "contact": {
      "name": "Labra API Support",
      "email": "support@labra.io"
    }
  },
  "servers": [
    {
      "url": "https://api.labra.io/v1",
      "description": "Production V1 API"
    },
    {
      "url": "https://api.labra.io/v2",
      "description": "Production V2 API"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "x-readme": {
    "samples-languages": [
      "curl",
      "node",
      "python",
      "ruby",
      "php",
      "java",
      "go",
      "csharp"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "track_id": {
            "type": "string",
            "description": "Request tracking ID"
          },
          "code": {
            "type": "string",
            "description": "Error code"
          },
          "service": {
            "type": "string",
            "description": "Service identifier"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of error messages"
          },
          "metadata": {
            "type": "object",
            "nullable": true,
            "description": "Additional error context"
          }
        }
      }
    }
  },
  "paths": {
    "/accounts/{account_id}/referrals/{referral_id}": {
      "delete": {
        "summary": "Delete Referral (V2)",
        "description": "V2 endpoint for deleting a referral. Uses '/accounts/' path instead of '/partners/'.\nFunctionally identical to V1 delete endpoint but with updated path structure.\n",
        "operationId": "deleteReferralV2",
        "tags": [
          "Referrals V2"
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "description": "UUID of the account",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referral_id",
            "in": "path",
            "required": true,
            "description": "UUID of the referral",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Referral deleted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string"
                    }
                  }
                },
                "examples": {
                  "successfulDeletion": {
                    "summary": "Successfully deleted (V2)",
                    "value": {
                      "message": "Referral deleted successfully"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "404": {
            "description": "Referral not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "notFound": {
                    "summary": "Referral not found",
                    "value": {
                      "track_id": "req_901234567",
                      "code": "404",
                      "service": "aws-engine-service",
                      "errors": [
                        "Referral with id 07227424-dc08-4a6b-872a-298e9de47bf0 not found"
                      ]
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Referrals V2",
      "description": "V2 API endpoints for managing referrals under /accounts/ path"
    }
  ]
}
```