Method: projects.locations.dataStores.branches.documents.delete

Document を削除します。

HTTP リクエスト

DELETE https://discoveryengine.googleapis.com/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}

この URL では gRPC Transcoding 構文を使用します。

パスパラメータ

パラメータ
name

string

必須。Document の完全なリソース名(projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}/branches/{branch}/documents/{document} など)。

呼び出し元に Document を削除する権限がない場合、Document が存在するかどうかにかかわらず、PERMISSION_DENIED エラーが返されます。

削除する Document が存在しない場合は、NOT_FOUND エラーが返されます。

リクエストの本文

リクエストの本文は空にする必要があります。

レスポンスの本文

成功した場合、レスポンスの本文は空の JSON オブジェクトになります。

認可スコープ

次の OAuth スコープのいずれかが必要です。

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

詳細については、Authentication Overview をご覧ください。

IAM 権限

name リソースに対する次の IAM 権限が必要です。

  • discoveryengine.documents.delete

詳細については、IAM のドキュメントをご覧ください。