Removing enterprise files

After a file is no longer needed, you can remove the file from a Java™ Platform, Enterprise Edition (Java EE) application or module deployed on a server.

Before you begin

This topic assumes that you have installed an application or module file on a server and that you want to delete the file.

About this task

Removing a file deletes the file from the product configuration repository and deletes the file from the file system of all nodes where the file is installed.

You can use the administrative console to remove a file from an application or module.

Procedure

  • Remove a file from an application.
    1. Go to the Enterprise applications page.

      Click Applications > Application Types > WebSphere enterprise applications in the console navigation tree.

    2. Select the application that contains a file you want removed.
    3. Click Remove File.
      The Remove a file page is displayed
    4. Select the URI of the file that you want removed from the application.
    5. Back up the application.

      Under Export before removing file, select the application name and then specify the location to which you want the file exported.

    6. Click OK to remove the file.
  • Remove a file from a module.
    1. Go to the Manage modules page.

      Click Applications > Application Types > WebSphere enterprise applications > application_name > Manage modules in the console navigation tree.

    2. Select the module from which you want to delete a file.
    3. Click Remove File.
      The Remove a file from a module page is displayed.
    4. Select the URI of the file that you want removed from the module.
    5. Back up the application.

      Under Export before removing file, select the application name and then specify the location to which you want the file exported.

    6. Click OK to remove the file.

Results

The file is exported to the designated location and removed from the application or module. The application or stand-alone Web module that had a file removed is restarted so the changes take effect.

What to do next

If the application or module is deployed on a cluster and you have no more configuration changes to make, click Rollout Update on the Enterprise applications page to propagate the changed configuration on all cluster members of the cluster on which the application or module is deployed. Rollout Update sequentially updates the configuration on the nodes that contain cluster members.

Save the changes to your administrative configuration.

On single-server products, application binaries are deleted after you save the changes.

On multiple-server products, application binaries are deleted when configuration changes on the deployment manager synchronize with configurations for individual nodes.