Add cache cleanup cmd to the Api functions so that Tasker can automate this step

Feature description:

Would like an API cmd (similar to MEDIA_SYNC) which would allow me to trigger the ‘cleanup’ function for the offline cache.

Problem solved:

Currently I am using the android Tasker app to automatically trigger a sync operation(periodically every x-hrs), in order to sync my source media from my NAS hosted Plex server. For some reason symfonium isn’t detecting media changes in my plex server, so I am now leaning on Tasker to reliably perform the sync operations. I also have the “automatic media offline cache” function enabled, which automatically creates a local cached copies of any new media presented from the plex server after each sync operation. This automation flow is currently working well. However when data is removed from the plex server, it is also being properly synced and removed from the symfonium database. BUT it is not being removed from the offline cache repository, per the docs this is expected behavior. To remove those server deleted files from the offline cache we need to issue the “cleanup” cmd. I would like api access to the cleanup cmd so that I can add a cleanup step to my Tasker flow, adding the cleanup immediately following the Tasker sync operation.

Brought benefits:

The api for “cleanup” cmd would allow us to create a more robust & complete sync operation for both the media database & the offline cache repository when using the Tasker tool.

Other application solutions:

 

 

Additional description and context:

 

 

Screenshots / Mockup: