mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-10-15 16:28:01 +01:00
Delete -> destory
This commit is contained in:
parent
e2895b62b4
commit
08e84d93b5
@ -68,7 +68,7 @@ export class DatabaseAccountsClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Deletes an existing Azure Cosmos DB database account. */
|
/* Deletes an existing Azure Cosmos DB database account. */
|
||||||
async delete(subscriptionId: string, resourceGroupName: string, accountName: string): Promise<void | void> {
|
async destroy(subscriptionId: string, resourceGroupName: string, accountName: string): Promise<void | void> {
|
||||||
const path = `subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/${accountName}`;
|
const path = `subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/${accountName}`;
|
||||||
return window.fetch(this.baseUrl + this.basePath + path, { method: "delete" }).then(response => response.json());
|
return window.fetch(this.baseUrl + this.basePath + path, { method: "delete" }).then(response => response.json());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user