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

# Revoke Project Access

> Revokes a team's access to the project. The requester must be an admin
of the owning team or an admin of its organization. The owning team's
implicit access cannot be revoked through this endpoint.




## OpenAPI

````yaml /openapi.yaml delete /v1/projects/{projectID}/access/{teamID}
openapi: 3.1.0
info:
  title: px0 API
  description: >
    px[0] is an open-source prompt infrastructure toolkit for managing prompts
    in production. It replaces hardcoded prompt strings with versioned
    templates, in-process caching, and OpenTelemetry observability, so teams can
    iterate on prompts without touching application code. This is the OpenAPI
    specification for all the public APIs of px0.
  version: 1.0.0
servers:
  - url: http://localhost:3000
    description: Local development server
security: []
paths:
  /v1/projects/{projectID}/access/{teamID}:
    delete:
      tags:
        - Projects
      summary: Revoke Project Access
      description: |
        Revokes a team's access to the project. The requester must be an admin
        of the owning team or an admin of its organization. The owning team's
        implicit access cannot be revoked through this endpoint.
      operationId: revokeProjectAccess
      parameters:
        - name: projectID
          in: path
          required: true
          description: The ID of the project.
          schema:
            type: string
            format: uuid
        - name: teamID
          in: path
          required: true
          description: The ID of the team whose access is being revoked.
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: Access revoked successfully (No Content)
        '400':
          description: Invalid project or team id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '403':
          description: Forbidden (requester is not an admin of the owning team or org)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '404':
          description: Project or access grant not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
      security:
        - BearerAuth: []
components:
  schemas:
    APIError:
      type: object
      properties:
        error:
          type: string
          example: invalid credentials
      required:
        - error
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Use an access token retrieved from login (Bearer sess_...) or a
        programmatic API key (Bearer ak_...).

````