In the recent conditions of a constant electricity outages:
Combine --cmd sync and --cmd trash modes into one "just do the thing" mode, when it will ask zoom API for all recordings for the past 30 days, download them and trash them one-by-one. It isn't necessary to download batches of recordings and trash batches, the instances can be asked if one recording can be trashed, if some instance is unresponsive - continue downloading, we'll trash them later, we'll be retrying.
BTW - singletone pattern could be necessary for full-day blackouts
In the recent conditions of a constant electricity outages:
Combine --cmd sync and --cmd trash modes into one "just do the thing" mode, when it will ask zoom API for all recordings for the past 30 days, download them and trash them one-by-one. It isn't necessary to download batches of recordings and trash batches, the instances can be asked if one recording can be trashed, if some instance is unresponsive - continue downloading, we'll trash them later, we'll be retrying.
BTW - singletone pattern could be necessary for full-day blackouts