I’ve got 1600 items in inventory-trashed some of which need to be restored and some that need to be deleted permanently. I’ve created a csv of the items I want to delete permanently...is there a way to use a csv to bulk delete those items or do i have to go through one at a time?
Yes, you can use the CSV file to bulk delete the items permanently. Many data management systems and inventory software allow for bulk operations using CSV files. You can import the CSV file into the inventory system and use it as a reference to delete the items specified in the file, saving you from the tedious task of deleting them one by one.
link on how to do it in Freshservice?
I’ve got 1600 items in inventory-trashed some of which need to be restored and some that need to be deleted permanently. I’ve created a csv of the items I want to delete permanently...is there a way to use a csv to bulk delete those items or do i have to go through one at a time?
You can use the API just need to loop the CSV file and do it batches due to limitation of number of API calls per minute. Use any script langue you can or I did last time, I used chat GPT to make the base script for powershell.
Delete an Asset Permanently
This operation allows you to permanently delete an asset which cannot be restored later.
PUT
/api/v2/assets/2display_id]/delete_forever
Sample code | Curl
curl -v -u api_key:X -X PUT 'https://domain.freshservice.com/api/v2/assets/9/delete_forever’ |
Response
1 | HTTP Status: 204 No Content |
“Use any script langue you can”
I’m a complete newb, can you post a sample of what you did?
“Use any script langue you can”
I’m a complete newb, can you post a sample of what you did?
Did this, but I haven’t tried it https://chat.openai.com/share/7f848fff-9ffb-4d1e-92e2-6ac9c03f41d6
Join the Community
Sign in to the Community
Social Login
Login for Freshworks Employees Login with LinkedInEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.