Problem
Multiple asset deletion is available in Asset Lifecycle Manager 3.5 and later. You can enable this setting under the configuration settings in the admin console.
The initial release of Asset Lifecycle Manager (v 3.0) only allows the deletion of one asset record at a time. Multiple delete is not allowed.
This can be a problem if you accidentally synchronize the wrong data in to your Asset Lifecycle Manager database, leaving you with thousands of useless records. Deleting them one at a time would be tedious.
Resolution
Deleting devices directly on the back end is not supported, but it is possible. The following examples are for the desktop asset only. You can modify the script to work with other asset types. This script has only been tested (informally) with the desktop asset type.
SQL Scripts
1) Use this script to completely remove all desktop assets:
--Use this to delete all assets of type desktop
delete from alm_obj26
where alm_obj26.alm_asset_base_idn in (
select alm_asset_base_idn
from alm_asset_base
where am_template='false')
delete from alm_asset_base
where am_template='false'
2) If you know the names of the devices you want to delete, and can put that list into comma separated values, use this script, inserting the list of values into the two appropriate places (where win2kserv and win2kpro are listed):
--start of script
--Use this if you know the names of the desktops you want to delete
delete from alm_obj26
where alm_obj26.alm_asset_base_idn in (
select alm_asset_base_idn
from alm_asset_base
where am_assetname in ('win2kserv','win2kpro'))
delete from alm_asset_base
where am_assetname in ('win2kserv','win2kpro')
--end of script