So you are using Backup Exec 2012 and are having problems with a ghost B2D folder.. You can’t seem to be able to remove it. You get an error like:

Remove-BEDiskStorageDevice : Unable to delete the disk storage. The device (or Backup Exec server) cannot be deleted because existing jobs or selection lists remain.  You must select another target for these jobs or selection lists before you can delete the device or Backup Exec server.

If you have a local SQL installation do the following:

  • Stop SQL service
  • Copy the database file as a backup
  • Start the SQL service
sqlcmd
use BEDB
go
select deviceid, devicename from dbo.device
go
delete from dbo.device where deviceid = <deviceid from above>
go

Based on an idea from: http://www.symantec.com/connect/forums/how-do-i-remove-disc-storage