del self._vnfds_to_vnfr[vnfd_id]
- # Remove any files uploaded with VNFD and stored under $RIFT_ARTIFACTS/libs/<id>
+ # Remove any files uploaded with VNFD and stored under $RIFT_VAR_ROOT/libs/<id>
try:
- rift_artifacts_dir = os.environ['RIFT_ARTIFACTS']
- vnfd_dir = os.path.join(rift_artifacts_dir, 'launchpad/libs', vnfd_id)
+ rift_var_root_dir = os.environ['RIFT_VAR_ROOT']
+ vnfd_dir = os.path.join(rift_var_root_dir, 'launchpad/libs', vnfd_id)
if os.path.exists(vnfd_dir):
shutil.rmtree(vnfd_dir, ignore_errors=True)
except Exception as e: