ApiManagementServiceResource.DeleteContentItemAsync Method

Definition

Removes the specified developer portal's content item.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}
  • Operation Id: ContentItem_Delete
  • Default Api Version: 2023-03-01-preview
public virtual System.Threading.Tasks.Task<Azure.Response> DeleteContentItemAsync (string contentTypeId, string contentItemId, Azure.ETag ifMatch, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteContentItemAsync : string * string * Azure.ETag * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteContentItemAsync : string * string * Azure.ETag * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteContentItemAsync (contentTypeId As String, contentItemId As String, ifMatch As ETag, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

contentTypeId
String

Content type identifier.

contentItemId
String

Content item identifier.

ifMatch
ETag

ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

contentTypeId or contentItemId is an empty string, and was expected to be non-empty.

contentTypeId or contentItemId is null.

Applies to