Function: vRA Block Device Delete

by Simon Sparks · 3 April 2026

To use this function add it to the class library file named PluginVRAService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: PluginVRAService.ts

Description: Orchestrator Function to Delete a vRA Block Device

Public Function: VraBlockDeviceDelete

publicVraBlockDeviceDelete(objVcaBlockDevice:VraBlockDevice,blnPurge:boolean=false,blnForceDelete:boolean=false):VraRequestTracker{

letobjVraHost:VraHost=objVcaBlockDevice.host;

letobjVraInfrastructureClient:VraInfrastructureClient=objVraHost.createInfrastructureClient();

// @ts-ignore
letobjVraDiskService:VraDiskService=objVraInfrastructureClient.createDiskService();

letobjVraRequestTracker:VraRequestTracker=objVraDiskService.deleteBlockDevice(objVcaBlockDevice.id,blnPurge,blnForceDelete);

returnobjVraRequestTracker;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like