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

# 删除代码仓库的审查计费规则

> 删除该规则，使后续审查恢复常规的计费归属方式。

删除代码仓库计费规则，使该代码仓库今后的 [Devin Review](https://docs.devinenterprise.com/zh/work-with-devin/devin-review.md#review-effort-and-billing-organization) 用量恢复为常规计费归属。`rule_id` 可通过[列出代码仓库计费规则](https://docs.devinenterprise.com/zh/api-reference/v3/review-billing-rules/list-enterprise-review-billing-rules.md)获取，也可从[设置代码仓库计费规则](https://docs.devinenterprise.com/zh/api-reference/v3/review-billing-rules/put-enterprise-review-billing-rule.md)的响应中获取。

## 权限

需要具有企业级 `ManageReview` 权限的[服务用户](https://docs.devinenterprise.com/zh/api-reference/v3/service-users/members-service-users.md)或[个人访问令牌](https://docs.devinenterprise.com/zh/api-reference/personal-access-tokens.md)。

## 行为

* 成功时返回 `204`，不含响应正文；如果此作用域中不存在该 ID 对应的规则，则返回 `404`。
* 已计入该规则下的用量不会被转移。


## OpenAPI

````yaml zh/v3-openapi.yaml DELETE /v3beta1/enterprise/review-settings/repo-billing-rules/{rule_id}
openapi: 3.1.0
info:
  description: 采用 Service User 身份验证和 RBAC 的 Devin v3 API
  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: 删除代码仓库的审查计费规则
      description: 删除该规则，使后续审查恢复常规的计费归属方式。
      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: 成功响应
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未授权
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 禁止访问
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 未找到
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 冲突
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 已移除
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 无法处理的内容
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemDetail'
          description: 请求过多
components:
  schemas:
    ProblemDetail:
      description: >-
        v3 API 的 RFC 9457 application/problem+json 错误响应体。


        detail 沿用自旧版 {"detail": ...} 响应体，以保持向后兼容；其他成员字段为新增字段。errors
        包含字段级验证失败信息（仅 422）。
      properties:
        detail:
          anyOf:
            - type: string
            - type: 'null'
          description: 针对此次具体情况的、便于人理解的说明。
          title: Detail
        error_code:
          anyOf:
            - type: string
            - type: 'null'
          description: 因操作被阻止而拒绝请求时返回的机器可读代码（例如 "user_frozen"、"migrated_session"）。
          title: Error Code
        errors:
          anyOf:
            - items:
                additionalProperties: true
                type: object
              type: array
            - type: 'null'
          description: 字段级验证错误（仅适用于 422 响应）。
          title: Errors
        instance:
          anyOf:
            - type: string
            - type: 'null'
          description: 此次出现对应的 URI 引用（请求路径）。
          title: Instance
        status:
          description: HTTP 状态码。
          title: Status
          type: integer
        title:
          description: 对问题类型的简短、便于理解的概述。
          title: Title
          type: string
        type:
          default: about:blank
          description: 用于标识问题类型的 URI 引用。
          title: Type
          type: string
      required:
        - title
        - status
      title: ProblemDetail
      type: object
  securitySchemes:
    bearerAuth:
      description: 服务用户凭据（前缀：cog_）
      scheme: bearer
      type: http

````

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