Skip to Main Content
Spotfire Ideas Portal
Status Future Consideration
Product Spotfire
Categories Automation Services
Created by Guest
Created on Oct 27, 2022

Delete analysis file based on created date using automation job

Dashboard archived with embedded data as part of automation job scheduled daily will flood Spotfire library (database) after few months so it will be useful to have an option in automation job builder to delete analysis files from a particular folder and based on created date / name of the file (if appended with date)

  • Attach files
  • Admin
    Miguel Díez
    Reply
    |
    Jan 2, 2024

    There are several possible approaches to this that you can apply:

    1. Use data from external source Instead of using embedded data.

    2. Automate pruning based on your custom policies:

      1. Use Spotfire CLI to automate library pruning based on your custom policies. You can do that from Spotfire 12.0 LTS.

      2. Use LibraryService (as suggested above by Gerko). Note this has been deprecated recently.

      3. Use REST API to automate library pruning based on your custom policies. You can do that from Spotfire 14.0 LTS. See: https://community.tibco.com/s/article/What-s-New-in-Spotfire-14-0-LTS

    3. Use library version history settings to opt-out for that specific library item. You can do that from Spotfire 14.0 LTS. See: https://community.tibco.com/s/article/What-s-New-in-Spotfire-14-0-LTS

    Note: When we introduced the Library version history, we discussed within UX about adding pre-defined pruning policies We understood early that there would be many different opinionated policies, and too many possible ways to configure them for different people (by date, name, directory, creator, version name, etc). Therefore, we decided to start the path by opening configuration and APIs, so everybody fully customize the pruning policy (as opposed to providing a few of default pruning behaviors).

    This is an interesting idea that is somehow related: https://tibco.aha.io/ideas/SPF-I-5156 "Add Python scripting modules as a standard Add-in in the Automation services capabilities". What do you think about adding a "custom automation job task" where you could run custom CLI/Python/REST?

    Thanks

    1 reply
  • Guest
    Reply
    |
    Nov 23, 2022
    One should be able to use the libraryService I have worked with this in the past and created a sort of library 'janitor' in powerShell https://docs.tibco.com/pub/sfire_dev/area/doc/api/TIB_sfire_server_WebServices_API_Reference/com/spotfire/ws/pub/LibraryService.html