Administer > Manage WebSphere Commerce features > Marketing > Catalog and marketing attachments


Delete attachments from the application EAR file

You might want to delete attachments from the application EAR file to make space on the system.

To delete files from the application EAR file:


Procedure

  1. Prepare a file called ibm-partialapp-delete.props that lists the files that you want deleted to the scope of the Stores.war. For example, you might want to delete the following files:

    • /opt/IBM/WebSphere/AppServer/profiles/instance/installedApps/WC_ins tance_name_cell/WC_instance.ear/Stores.war/ConsumerDirect/attachment/elephant_baby01.jpg

    • /opt/IBM/WebSphere/AppServer/profiles/instance/installedApps/WC_ins tance_name_cell/WC_instance.ear/Stores.war/ConsumerDirect/attachment/HelloKitty.JPG

    The contents of the ibm-partialapp-delete.props file would look similar to the following code:

    ConsumerDirect/Attachment/elephant_baby01.jpg
    ConsumerDirect/Attachment/HelloKitty.JPG 
    

  2. Create the following directory structure (at the root of a drive) ; then save the file in the new directory.

    Stores.war/META-INF/ibm-partialapp-delete.props
    

  3. Zip-up the file and maintain the directory structure. If you are using Winzip, click Options > Save full path info.

  4. Login to the WebSphere Application Server Admin Console; then click Applications > Enterprise Applications.

  5. Select the WC_enterprise_application; then click Update.

  6. Select Partial Application.

  7. Browse the local system and find the ibm-partialapp-delete.zip; then click Next.

  8. Click OK. This part may take a few minutes. When the update is complete, the message "Update of WC_enterprise_application has ended", displays.

  9. Click Save to Master Configuration; then click Save.


What to do next

The attachment is deleted from the application EAR file.


+

Search Tips   |   Advanced Search