cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there a stored procedure to remove all assets from "All Assets"?

Hi,

I want to remove all assets that I see in Hardware Assets -> Assets -> All Assets. I can do this manually (takes a lot of time) or I can just empty the asset database table. But I don't want to leave data behind in the database pointing towards these assets. For example in "All Inventory" a device can be linked with an asset. I don't want to leave the FK of the asset in the compliance computer table.

My question:

Is there a stored procedure for removing all assets and its traces?

 

And if not:

What is the best way to remove all assets?

(1) Solution

The stored procedure "AssetRemoveAll" run against the compliance database will remove all assets stored in the Asset table. 
If you only want to remove some assets then the stored procedure "AssetRemoveBatch" can be run providing an a temp table named #Asset with the specific asset that you want to remove.

I am only human; anything said is my view or from my own experience and not necessarily that of Flexera.
If my reply answers a question you have raised, please click "ACCEPT AS SOLUTION".

View solution in original post

(1) Reply

The stored procedure "AssetRemoveAll" run against the compliance database will remove all assets stored in the Asset table. 
If you only want to remove some assets then the stored procedure "AssetRemoveBatch" can be run providing an a temp table named #Asset with the specific asset that you want to remove.

I am only human; anything said is my view or from my own experience and not necessarily that of Flexera.
If my reply answers a question you have raised, please click "ACCEPT AS SOLUTION".