1.2.0 (latest) 1.1.0 1.0.0

    public sealed class DeleteApiRequest : IMessage<DeleteApiRequest>, IEquatable<DeleteApiRequest>, IDeepCloneable<DeleteApiRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the API hub v1 API class DeleteApiRequest.

The \[DeleteApi\]\[google.cloud.apihub.v1.ApiHub.DeleteApi\] method's request.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DeleteApiRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DeleteApiRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeleteApiRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteApiRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeleteApiRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DeleteApiRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeleteApiRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiHub.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.md.txt)

## Assembly

Google.Cloud.ApiHub.V1.dll

## Constructors

### DeleteApiRequest()

    public DeleteApiRequest()

### DeleteApiRequest(DeleteApiRequest)

    public DeleteApiRequest(DeleteApiRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DeleteApiRequest` |

## Properties

### ApiName

    public ApiName ApiName { get; set; }

[ApiName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.ApiName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiHub.V1/latest/Google.Cloud.ApiHub.V1.DeleteApiRequest.md.txt#Google_Cloud_ApiHub_V1_DeleteApiRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ApiName` |   |

### Force

    public bool Force { get; set; }

Optional. If set to true, any versions from this API will also be deleted.
Otherwise, the request will only work if the API has no versions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### Name

    public string Name { get; set; }

Required. The name of the API resource to delete.
Format: `projects/{project}/locations/{location}/apis/{api}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |