//Throws RulesRepositoryException if the package or asset does not exist
AssetItem ai = rulesRepository.loadModule(packageName).loadAsset( assetName );
ModuleItem module = ai.getModule();
// assetService.archiveAsset(ai.getUUID());
repositoryAssetService.removeAsset(ai.getUUID());
module.updateBinaryUpToDate(false);
rulesRepository.save();
} catch (RuntimeException e) {
throw new WebApplicationException(e);
}
}