ConceptCreator/app/DeleteModel.ts
Sebastian Böckelmann c4085a7cf9
All checks were successful
E2E Testing / test (push) Successful in 1m36s
Delete ScriptAccounts from Filesystem
2024-03-19 17:03:07 +01:00

11 lines
327 B
TypeScript

import * as path from "node:path";
import * as fs from "fs";
export class DeleteTransaction {
static deleteScriptAccount(projectDir: string, componentName: string) {
const filename = path.join(projectDir, "script-accounts", componentName + ".json")
fs.unlinkSync(filename)
console.log("Delete ", filename)
}
}