Renamed scripts to .mjs to follow ES module convention.

This commit is contained in:
2026-01-30 23:16:22 +01:00
parent 0904c44f63
commit c733310d69
6 changed files with 0 additions and 0 deletions

15
bin/delete-app.mjs Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env node
import { execSync } from 'child_process';
import { config } from '../config.js';
// Get the Azure AD application ID by name
const appId = execSync(`az ad app list --query "[?displayName=='${config.appName}'].appId" -o tsv`).toString().trim();
if (appId) {
// Delete the Azure AD application
execSync(`az ad app delete --id ${appId}`);
console.log(`Deleted App with ID: ${appId}`);
} else {
console.log(`No App found with name: ${APP_NAME}`);
}