We have over a thousand Saved CSV imports, 99% of ...
# csvimports
s
We have over a thousand Saved CSV imports, 99% of which are redundant. I can’t find any sensible way to delete them - they don’t seem to be scriptable. Any ideas?
d
yes, although the delete button is only present for the owner, you can just navigate to the delete url for the saved imports you want to delete, and NS will delete them. I tested this as an admin deleting another admin's saved import.
You could maybe automate this in your language of choice to navigate to/request all of those URLs for you to delete the imports Take care, as it's pretty unforgiving. It might actually just be quicker/safer to generate a table of saved imports and their related delete-urls and just go through clicking them by hand
👍 1
s
Relatedly, is there any way to make the default behaviour Run rather than Save & Run?
d
unfortunately no, as the owner you'll always get save & run as the default option
no doubt there's a p99 enhancement out there for that 🙃
😂 2
a
@Stuart Anderton - Yeah there is no way to mass delete them and there is also no way to setup the Role Permissions using the View, Edit, Create, Full settings. It is all or nothing with FULL if I remember correctly. If you are doing that many CSV imports it is not super difficult to automate the CSV import process. Then you could have the same .csv file in the File Cabinet for the repetitive imports that you could point the script to reuse the same CSV import every time.
👍 1
☝️ 1