Apps - Delete

Delete an IoT Central application.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}?api-version=2021-06-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group that contains the IoT Central application.

resourceName
path True

string

The ARM resource name of the IoT Central application.

subscriptionId
path True

string

The subscription identifier.

api-version
query True

string

The version of the API.

Responses

Name Type Description
200 OK

This is returned as a response to the status polling request for the delete operation. The body contains the resource representation that indicates a transitional provisioning state.

202 Accepted

Accepted - Delete request accepted; the operation will complete asynchronously.

204 No Content

Once the long running delete operation completes successfully, a 204 No Content status code is returned when the status polling request finds the IoT Central application metadata in the service and the status of the delete operation is set to a completed state.

Other Status Codes

CloudError

DefaultErrorResponse

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Apps_Delete

Sample request

DELETE https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp?api-version=2021-06-01

Sample response

message: Created
code: 200
{
  "error": {
    "code": "Error code",
    "message": "Error message",
    "target": "Error target"
  }
}

Definitions

Name Description
CloudError

Error details.

CloudErrorBody

Details of error response.

CloudError

Error details.

Name Type Description
error.code

string

The error code.

error.details

CloudErrorBody[]

A list of additional details about the error.

error.message

string

The error message.

error.target

string

The target of the particular error.

CloudErrorBody

Details of error response.

Name Type Description
code

string

The error code.

details

CloudErrorBody[]

A list of additional details about the error.

message

string

The error message.

target

string

The target of the particular error.