15.11. Appendix K: Clearing the Repository

Engineering Knowledge Manager

Installation Guide | Chapter 15: Appendices |

15.10. Appendix J: Granting Database Privileges |  | 15.12. Appendix L: Disabling HTTP Compression
Prev |  | Next

## 15.11. Appendix K: Clearing the Repository

Important: The procedure provided in this Appendix will delete ALL EKM workspaces and data from the EKM repository. DO NOT follow this procedure unless you intend to completely remove ALL stored data from your EKM server.

1. On each EKM cluster node, stop the EKM server.

2. On each EKM cluster node, delete all files and directories within `REPOSITORIES_HOME` except for the following:

   `cacheStore/`

   `repository.xml.template`

   `indexing_configuration.xml.template`

3. On each EKM cluster node, delete all files and directories within `REPOSITORIES_HOME/cacheStore` except for the following:

   `repository.xml`

   `indexing_configuration.xml`

4. Delete the contents of the shared EKM data directory[14].

5. On the EKM database server, delete and recreate the EKM database:

   1. Connect to the EKM database server in console mode by running the control script: `EKMDB_ROOT/bin/mysql.(cmd|sh)`

   2. Delete and recreate the EKM database by issuing the following commands in the mysql console:

          drop database ekm;
          create database ekm;
          exit

6. On each EKM cluster node, start the EKM server.

[14] 1 To determine the location of the shared EKM data directory, look at the following file on one of the EKM cluster nodes: `REPOSITORIES_HOME/repository.xml.template`

Find the `DataStore` element, and check the value of the `path` attribute (shown in bold):

    <DataStore class="com.ansys.ingress.core.model.persistence.EkmFileDataStore">
    <param name="path" value="/server/share/ekm/datastore" />

Contains proprietary and confidential information of ANSYS, Inc. and its subsidiaries and affiliates.

Prev | Up / Contents | Next

Release 18.2 - © ANSYS, Inc. All rights reserved.