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

# Delete a repository's Review billing rule

> Remove the rule so future Reviews use normal billing attribution.

Removes a repository billing rule, so that future [Devin Review](https://docs.devin.ai/work-with-devin/devin-review.md#review-effort-and-billing-organization) usage on that repository goes back to normal billing attribution. Get the `rule_id` from [List repository billing rules](https://docs.devin.ai/api-reference/v3/review-billing-rules/list-enterprise-review-billing-rules.md) or from the response of [Set a repository billing rule](https://docs.devin.ai/api-reference/v3/review-billing-rules/put-enterprise-review-billing-rule.md).

## Permissions

Requires a [service user](https://docs.devin.ai/api-reference/v3/service-users/members-service-users.md) or [personal access token](https://docs.devin.ai/api-reference/personal-access-tokens.md) with the `ManageReview` permission at the enterprise level.

## Behavior

* Returns `204` with no body on success, and `404` when no rule with that ID exists in this scope.
* Usage already charged under the rule is not moved.


## OpenAPI

````yaml v3-openapi.yaml DELETE /v3beta1/enterprise/review-settings/repo-billing-rules/{rule_id}
openapi: 3.1.0
info:
  description: Devin v3 API with Service User authentication and RBAC
  title: Devin API v3
  version: 3.0.0
servers: []
security:
  - bearerAuth: []
paths:
  /v3beta1/enterprise/review-settings/repo-billing-rules/{rule_id}:
    delete:
      tags:
        - review-billing
      summary: Delete a repository's Review billing rule
      description: Remove the rule so future Reviews use normal billing attribution.
      operationId: >-
        handle_delete_review_repo_billing_rule_v3beta1_enterprise_review_settings_repo_billing_rules__rule_id__delete
      parameters:
        - in: path
          name: rule_id
          required: true
          schema:
            pattern: ^review-billing-rule-[0-9a-f]{32}$
            title: Rule Id
            type: string
      responses:
        '204':
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Conflict
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Gone
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Unprocessable Content
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: Too Many Requests
components:
  schemas:
    ProblemDetail:
      description: >-
        RFC 9457 application/problem+json error body for the v3 API.


        detail is retained from the legacy {"detail": ...} body for back-compat;
        the

        other members are additive. errors carries field-level validation
        failures

        (422 only).
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: A human-readable explanation specific to this occurrence.
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Machine-readable code for blocked-action refusals (e.g.
            "user_frozen", "migrated_session").
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: Field-level validation errors (422 responses only).
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: A URI reference (the request path) for this occurrence.
          title: Instance
        status:
          description: The HTTP status code.
          title: Status
          type: integer
        title:
          description: A short, human-readable summary of the problem type.
          title: Title
          type: string
        type:
          default: about:blank
          description: A URI reference identifying the problem type.
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
  securitySchemes:
    bearerAuth:
      description: 'Service User credential (prefix: cog_)'
      scheme: bearer
      type: http

````

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