public static void undeployCommand(final APISession apiSession) throws BonitaException { final CommandAPI commandAPI = TenantAPIAccessor.getCommandAPI(apiSession); commandAPI.unregister("waitServerCommand"); commandAPI.removeDependency("commands"); }