Deleting managed files

You can delete a managed file if you no longer have any use for that file. You cannot delete a managed file if it is associated with a business object, such as a catalog entry, category, or marketing content.

Before you begin

To determine if a managed file is associated with a business object, view the managed file details. The properties view of the selected file displays the business objects that the file is assigned to in the References tab.

Procedure

  1. Open the Assets tool.
  2. In the explorer view, find the managed file that you want to delete.
  3. From the Files - List view, right-click the managed file; then click Delete.
    WebSphere Commerce EnterpriseNote: If you are working in an extended sites store and the file that you want to delete is contained in an attachment that belongs to an asset store, you cannot delete the file unless you are authorized to access the asset store. When you are in an extended site store, the icon in the Type column for the attachment displays a small white arrow Asset store indicator to indicate that the attachment belongs to an asset store. Any changes that you make to the attachment are applied to all stores that use this attachment.

Results

The managed file is marked for deletion from the WebSphere Commerce database.
Restriction: After using the Assets tool in the Management Center to delete a file, the file is not be removed from the WebSphere Commerce file system until the ScheduledContentManagedFileEARUpdate scheduled job runs. In the meantime:
  1. If you log on to the WebSphere Commerce Accelerator, the deleted file will still appear.
  2. If you upload the same file to the same directory again, an error message will show indicating that the file already exists.
To avoid such inconsistency, you can manually specify the start time and interval of the scheduler by following the steps in Scheduling a site-level job.