mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
Configurations: 'specification/orbitalplanetarycomputer/Orbital.Management/tspconfig.yaml', API Version: 2026-04-15, SDK Release Type: stable, and CommitSHA: '5e21babae10dd7056c3005bb51da815f0495f1aa' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6062570 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. **Release plan link:** [https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=0ae5a917-5001-f111-8406-000d3a376cbb](https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=0ae5a917-5001-f111-8406-000d3a376cbb) **Submitted by**: [email protected] ## Release Plan Details - Release Plan: https://aka.ms/sdk-release-planner?release-plan-id=0ae5a917-5001-f111-8406-000d3a376cbb Spec pull request: https://github.com/Azure/azure-rest-api-specs/pull/41263 Spec API version: 04-15-2026 --------- Co-authored-by: Devanshu Singh <[email protected]>
25 lines
753 B
TypeScript
25 lines
753 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { SpatioClient } from "@azure/arm-planetarycomputer";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
/**
|
|
* This sample demonstrates how to delete a GeoCatalog
|
|
*
|
|
* @summary delete a GeoCatalog
|
|
* x-ms-original-file: 2026-04-15/GeoCatalogs_Delete.json
|
|
*/
|
|
async function geoCatalogsDelete(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "cd9b6cdf-dcf0-4dca-ab19-82be07b74704";
|
|
const client = new SpatioClient(credential, subscriptionId);
|
|
await client.geoCatalogs.delete("MyResourceGroup", "MyCatalog");
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await geoCatalogsDelete();
|
|
}
|
|
|
|
main().catch(console.error);
|