implement purge and upgrade_omnibus in REST API