How to delete a refresh schedule using asset bundle import?

Hello,

I am using quicksight CLI action start-asset-bundle-import-job to publish dashboards and datasets in Quicksight.

This works for creating and updating dashboards and datasets, but refresh schedules are not updated.

Consider the following use case:

  1. Create dashboard with SPICE dataset on a refresh schedule
  2. Export the dashboard and dataset with start-asset-bundle-export-job
  3. Use the bundle to copy it to another Quicksight account, via start-asset-bundle-import-job
  4. Modify the original dataset, remove the refresh schedule
  5. Re-export and re-import into the Quicksight account
  6. The refresh schedule is not deleted.

How can I ensure, that refresh schedule is deleted? The bundle includes refreshSchedule/ folder, but not when the schedule is removed. I want to create a process, where I can iteratively update the dashboard and dataset with new versions, including any SPICE settings

Do I really need to identify refresh-schedules not part of the bundle, and delete them via delete-refresh-schedule?

Hi @mbp

To ensure that a refresh schedule is deleted when updating a dataset via the asset bundle import, please note that the asset bundle export/import process does not automatically delete refresh schedules that have been removed from the original dataset before export. The refresh schedule folder is included when schedules exist but is omitted when schedules are removed.

  • The deletion of refresh schedules is not tracked or reflected by the asset bundle import process.
  • You will need to explicitly identify any refresh schedules that no longer exist in the updated asset bundle after import.
  • Use the list-refresh-schedules to retrieve the current list of refresh schedules for the dataset. Then, compare this list with the refresh schedules contained in the imported asset bundle.
  • Finally, manually delete any obsolete refresh schedules by calling the delete-refresh-schedule.