mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 18:01:39 +00:00
Delete -> destory
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user