> ## 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/ja/work-with-devin/devin-review.md#review-effort-and-billing-organization) の使用量は、通常の請求先割り当てに戻ります。`rule_id` は [リポジトリの請求ルール一覧を取得](https://docs.devinenterprise.com/ja/api-reference/v3/review-billing-rules/list-enterprise-review-billing-rules.md) から、または [リポジトリの請求ルールを設定](https://docs.devinenterprise.com/ja/api-reference/v3/review-billing-rules/put-enterprise-review-billing-rule.md) のレスポンスから取得できます。

## 権限

エンタープライズレベルで `ManageReview` 権限を持つ[サービスユーザー](https://docs.devinenterprise.com/ja/api-reference/v3/service-users/members-service-users.md)または[個人用アクセストークン](https://docs.devinenterprise.com/ja/api-reference/personal-access-tokens.md)が必要です。

## 動作

* 成功時はボディなしで `204` を返します。このスコープ内に指定した ID のルールが存在しない場合は `404` を返します。
* そのルールに基づいてすでに課金された使用量は移動されません。


## OpenAPI

````yaml ja/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.