---
updatedAt: 2026-10-05T21:33:06.000Z
agentTools:
  projectIndex: https://developer.duda.co/llms.txt
---

# Revokes access to a site

Removes an account's access to a site.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Duda Partner API",
    "version": "1.0.0",
    "description": "REST API for Duda partners. Manage accounts, sites, content, collections, eCommerce, bookings, memberships and webhooks on the Duda platform."
  },
  "servers": [
    {
      "url": "https://api.duda.co",
      "description": "Production (US)"
    },
    {
      "url": "https://api.eu.duda.co",
      "description": "Production (EU)"
    },
    {
      "url": "https://api-sandbox.duda.co",
      "description": "Sandbox"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/api/accounts/{account_name}/sites/{site_name}/permissions": {
      "delete": {
        "tags": [
          "Permissions"
        ],
        "summary": "Revoke access to a site",
        "description": "Removes an account's access to a site.",
        "operationId": "deleteAccessToSiteV2",
        "parameters": [
          {
            "$ref": "#/components/parameters/AccountName"
          },
          {
            "$ref": "#/components/parameters/SiteName"
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PaymentRequired"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "429": {
            "$ref": "#/components/responses/TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Bad Request",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error"
      },
      "MethodNotAllowed": {
        "description": "Method Not Allowed"
      },
      "PaymentRequired": {
        "description": "Payment Required",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "TooManyRequests": {
        "description": "Too many requests. The rate limit was exceeded.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorRDT"
            }
          }
        }
      }
    },
    "schemas": {
      "ErrorRDT": {
        "type": "object",
        "properties": {
          "error_code": {
            "type": "string",
            "enum": [
              "AccessForbidden",
              "ResourceNotExist",
              "ResourceAlreadyExist",
              "InvalidInput",
              "InvalidState",
              "InternalError",
              "UnAuthorized",
              "TooManyRequests",
              "EmailDomainNotValidated",
              "InsufficientCredits"
            ]
          },
          "message": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "description": "API username and password. Find them in the API access section of the Business tools tab in the platform.",
        "scheme": "basic"
      }
    },
    "parameters": {
      "SiteName": {
        "name": "site_name",
        "in": "path",
        "description": "The site's unique name (its ID), returned when the site is created.",
        "required": true,
        "schema": {
          "type": "string"
        }
      },
      "AccountName": {
        "name": "account_name",
        "in": "path",
        "description": "The account's unique name, set when the account is created.",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    }
  }
}
```