Delen via


Web Apps - Delete Slot

Beschrijving voor het verwijderen van een web-, mobiele of API-app of een van de implementatiesites.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}?api-version=2024-04-01
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}?deleteMetrics={deleteMetrics}&deleteEmptyServerFarm={deleteEmptyServerFarm}&api-version=2024-04-01

URI-parameters

Name In Vereist Type Description
name
path True

string

De naam van de app die u wilt verwijderen.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

Naam van de resourcegroep waartoe de resource behoort.

slot
path True

string

Naam van de implementatiesite die u wilt verwijderen. De API verwijdert standaard de productiesite.

subscriptionId
path True

string

Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000000).

api-version
query True

string

API-versie

deleteEmptyServerFarm
query

boolean

Geef onwaar op als u een leeg App Service-plan wilt behouden. Standaard wordt een leeg App Service-plan verwijderd.

deleteMetrics
query

boolean

Indien waar, worden metrische gegevens van web-apps ook verwijderd.

Antwoorden

Name Type Description
200 OK

De web-app is verwijderd.

204 No Content

De web-app is verwijderd.

404 Not Found

De web-app is niet gevonden.

Other Status Codes

DefaultErrorResponse

Foutreactie van App Service.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

Delete Web App Slot

Voorbeeldaanvraag

DELETE https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/sitef6141/slots/staging?api-version=2024-04-01

Voorbeeldrespons

Definities

Name Description
DefaultErrorResponse

Foutreactie van App Service.

Details
Error

Foutmodel.

DefaultErrorResponse

Foutreactie van App Service.

Name Type Description
error

Error

Foutmodel.

Details

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.

Error

Foutmodel.

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

details

Details[]

Gedetailleerde fouten.

innererror

string

Meer informatie over foutopsporing.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsgegevens.