Web Apps - Delete
Beskrivning för Tar bort en webb-, mobil- eller API-app eller någon av distributionsplatserna.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}?api-version=2024-04-01
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}?deleteMetrics={deleteMetrics}&deleteEmptyServerFarm={deleteEmptyServerFarm}&api-version=2024-04-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
name
|
path | True |
string |
Namnet på den app som ska tas bort. |
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Namnet på resursgruppen som resursen tillhör. |
subscription
|
path | True |
string |
Ditt Azure-prenumerations-ID. Det här är en GUID-formaterad sträng (t.ex. 00000000-0000-0000-0000-000000000000). |
api-version
|
query | True |
string |
API-version |
delete
|
query |
boolean |
Ange false om du vill behålla en tom App Service-plan. Som standard tas den tomma App Service-planen bort. |
|
delete
|
query |
boolean |
Om det är sant tas även webbappens mått bort. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Webbappen har tagits bort. |
|
204 No Content |
Webbappen har tagits bort. |
|
404 Not Found |
Det gick inte att hitta webbappen. |
|
Other Status Codes |
App Service-felsvar. |
Säkerhet
azure_auth
Azure Active Directory OAuth2 Flow
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
Name | Description |
---|---|
user_impersonation | personifiera ditt användarkonto |
Exempel
Delete Web app
Exempelbegäran
Exempelsvar
Definitioner
Name | Description |
---|---|
Default |
App Service-felsvar. |
Details | |
Error |
Felmodell. |
DefaultErrorResponse
App Service-felsvar.
Name | Typ | Description |
---|---|---|
error |
Felmodell. |
Details
Name | Typ | Description |
---|---|---|
code |
string |
Standardiserad sträng för att programmatiskt identifiera felet. |
message |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
target |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
Error
Felmodell.
Name | Typ | Description |
---|---|---|
code |
string |
Standardiserad sträng för att programmatiskt identifiera felet. |
details |
Details[] |
Detaljerade fel. |
innererror |
string |
Mer information om felsökningsfel. |
message |
string |
Detaljerad felbeskrivning och felsökningsinformation. |
target |
string |
Detaljerad felbeskrivning och felsökningsinformation. |