Delete a WebSphere Commerce Payments instance

To delete a WebSphere Commerce Payments instance:

  1. Ensure that WebSphere Commerce Payments is stopped.

    The WebSphere Commerce Information Center does not need to be stopped when deleting a WebSphere Commerce Payments instance.

  2. Delete the WebSphere Commerce Payments instance from Configuration Manager by doing the following:

    1. Start Configuration Manager.

    2. In Configuration Manager, under WebSphere Commerce expand hostname > Payments > Instance List.

    3. Right-click the instance you want to delete and select Delete Payments Instance. A dialog displays confirming that you want to delete the instance. When the instance is deleted, a message displays. Click OK.

    4. Exit Configuration Manager.
      This step also deletes the enterprise application and virtual hosts.

  3. Do one of the following sets of steps, depending on the database you are using for WebSphere Commerce Payments:

  4. Drop the WebSphere Commerce Payments database associated with the WebSphere Commerce Payments instance you want to delete.

    To drop a local WebSphere Commerce Payments database, issue the following commands from a DB2 command window:

    db2 drop db db_name
    where db_name is the name of the WebSphere Commerce Payments database.

    To drop a remote WebSphere Commerce Payments database, issue the following commands from a DB2 command session on the WebSphere Commerce Payments machine: db2 attach to remote_db_node user db_admin_ID using db_admin_password db2 drop db db_name db2 uncatalog db db_alias

    where the variables are defined as follows:
    remote_db_node The database node name that was specified when the WebSphere Commerce Payments instance was created.db_admin_ID The database administrator ID that was specified when the WebSphere Commerce Payments instance was created.

    This ID must be different than the user ID for the WebSphere Commerce database.

    db_admin_password The password for the database administratordb_name The name of the WebSphere Commerce Payments database.db_alias
    This is the alias under which the remote WebSphere Commerce Payments database is cataloged on the WebSphere Commerce Payments machine.

    Drop the WebSphere Commerce Payments tablespace and delete the Oracle user associated with the WebSphere Commerce Payments instance you want to delete. For instructions on dropping a tablespace and deleting an Oracle user, refer to the Oracle documentation.

  5. Delete the following directories if they exist:

    • WAS_installdir/profiles/WAS_WPM_profile/logs/server1

    • WC_installdir/payments/instances/instance

    • WAS_installdir/logs/instance_Commerce_Payments_Server

    • WAS_installdir/profiles/WAS_WPM_profile/installedApps/hostname/instance_Commerce_Payments_App.ear
      where instance is the name of the WebSphere Commerce Payments instance you want to delete.

  6. Do the following steps, depending on your Web server:

  7. Web server Actions
    IBM HTTP Server No additional steps need to be performed when using IBM HTTP Server
    Microsoft IIS No additional steps need to be performed when using Microsoft IIS
    Sun Java System Web Server No additional steps need to be performed when using Sun ONE Web Server

  8. If you plan to use other WAS after deleting the WebSphere Commerce Payments instance, regenerate the WAS plug-in configuration file.

Related concepts

Related tasks