Deleting an image from Cognos Analytics
Use the image.sh script with the -c delete option to delete an image from a Cognos Analytics service instance.
Synopsis
./image.sh
-c delete
-n
instance_namespace
-t
tethered_namespace
-u
user_name
-p
password
-i
path_to/image_file_name [-h]
Options
- -i path_to/image_file_name
- The file path to the image file.
- -n instance_namespace
- The namespace or project.
- -p password
- Cloud Pak for Data user password.
- -t tethered_namespace
- Namespace in which Cognos Analytics is provisioned.
- -u user_name
- Cloud Pak for Data username.
- -h
- Prints help to the console and exits.
Example
The following example deletes the image1.gif file from the /opt/ibm/cognos/analytics/webcontent/bi/images/customImages/portal_subdir directory:
export ADMIN_NAME=<platform administrator user name>
export ADMIN_PASSWORD=<platform administrator password>
./image.sh -c download -n ${PROJECT_CPD_INST_OPERANDS} -t ${PROJECT_CPD_INSTANCE_TETHERED} -u ${ADMIN_NAME} -p ${ADMIN_PASSWORD} -i portal_subdir/image1.gif
Script file
For more information about creating the image.sh script, see Creating administration scripts.