Deletes all detached tenant media sets.
Note: This function will delete detached media set in batches of 10 and commit in between each batch.
This is to ensure we don't get stuck always trying to delete the same media and time out.
procedure DeleteDetachedTenantMediaSet()
DeleteDetachedTenantMedia
Deletes all detached tenant media.
Note: This function will delete detached media in batches of 100 and commit in between each batch.
This is to ensure we don't get stuck always trying to delete the same media and time out.
procedure DeleteDetachedTenantMedia()
ScheduleCleanupDetachedMedia
Schedules a background task which will remove both detached Tenant Media and detached Tenant Media Set.
If user cannot schedule tasks, will suggest running the task in the foreground.