In this article:
Delete a Track
Deletes a Track in the asset
DELETE https://{{api-endpoint}}/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/tracks/{trackName}?api-version={{api-version}}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
accountName |
path | True | string | The Media Services account name. |
assetName |
path | True | string | The Asset name. |
resourceGroupName |
path | True | string | The name of the resource group within the Azure subscription. |
subscriptionId |
path | True | string | The unique identifier for a Microsoft Azure subscription. |
trackName |
path | True | string | The Asset Track name. |
api-version |
query | True | string | The version of the API to be used with the client request. |
Responses
| Name | Type | Description |
|---|---|---|
| 202 Accepted | AssetTrack |
Accepted Headers Retry-After: integer |
| 204 No Content | NoContent | |
| Other Status Codes | ErrorResponse | Detailed error information. |
Examples
Delete a Track
| Technology | Sample request |
|---|---|
| HTTP |
|
| Java |
|
| Python |
To use the SDK library in your project, see this documentation. |
| JavaScript |
To use the Azure SDK library in your project, see this documentation. |
| .NET |
To use the SDK library in your project, see this documentation. |
Sample response
Status code: 202
HTTP
azure-asyncoperation: https://{{api-endpoint}}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationStatuses/62e4d893-d233-4005-988e-a428d9f77076?api-version={{api-version}}
location: https://{{api-endpoint}}/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Media/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountRainer/tracks/text3/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version={{api-version}}
Status code: 204
Definitions
| Name | Description |
|---|---|
| ErrorAdditionalInfo | The resource management error additional info. |
| ErrorDetail | The error detail. |
| ErrorResponse | Error response. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info | object | The additional info. |
| type | string | The additional info type. |
ErrorDetail
| Name | Type | Description |
|---|---|---|
| additionalInfo | ErrorAdditionalInfo | The error additional info. |
| code | string | The error code. |
| details | ErrorDetail | The error details. |
| message | string | The error message. |
| target | string | The error target. |
ErrorResponse
| Name | Type | Description |
|---|---|---|
| error | ErrorDetail | The error object. |