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
- 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
- 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
- Zip-up the file and maintain the directory structure. If you are using Winzip, click Options > Save full path info.
- Login to the WebSphere Application Server Admin Console; then click Applications > Enterprise Applications.
- Select the WC_enterprise_application; then click Update.
- Select Partial Application.
- Browse the local system and find the ibm-partialapp-delete.zip; then click Next.
- Click OK. This part may take a few minutes. When the update is complete, the message "Update of WC_enterprise_application has ended", displays.
- Click Save to Master Configuration; then click Save.
What to do next
The attachment is deleted from the application EAR file.