1

How to clean up the Pyramid "General" Folder

The following can be run on all Pyramid servers in your installation.
When the next major release of Pyramid comes out this process will be automatic for printing files created after it is installed/upgraded. 

The "general" folder contains files among other things, created during the printing process. If the "general" folder, found by default here (C:\Program Files\Pyramid\repository\general), has grown to a large size, it can be cleaned up to remove any redundant files using the following instructions.

1) Download the attached zip file and unzip it.

    NOTE: Please download the file that is relevant to your Pyramid version.

2)Open a command prompt(as admin) from the folder you unzipped the files to (This can be done by holding down the shift key and right-clicking.) and run the below command:

For cleanupTools 2018:
java -classpath "lib\*;conf\*;" com.pa.tools.PrintingDirectoryCleaner  path="C:\Program Files\Pyramid 2018\config.ini"

For cleanupTools 2020:
java -classpath "lib\*;conf\*;" com.pa.tools.cleanup.PrintingDirectoryCleaner  path="C:\Program Files\Pyramid\config.ini"

For Linux

/opt/pyramid/java/bin/java -classpath lib/*:classes/*: com.pa.tools.PrintingDirectoryCleaner  path="/opt/pyramid/config.ini"
 

*change the path location to reflect the drive that you have Pyramid installed on.

3) Once the tool has finished removing any files that are not needed, you will see the below summary screen at which point the command prompt can be closed.

**Please note, you may need to set up your Java paths as below if the above commands fail.**

This link explains how to do this, however, use the below paths, not the ones in the link.

https://javatutorial.net/set-java-home-windows-10

For 2018-

PATH
C:\Program Files\Pyramid 2018\java8\jre\bin;
JAVA_HOME
C:\Program Files\Pyramid 2018\java8\jre;

For 2020-
JAVA_HOME
C:\Program Files\Pyramid\java
PATH
%JAVA_HOME%\bin

1reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Brilliant. Thanks for this, guys!

    Like
Like1 Follow
  • 1 Likes
  • 2 mths agoLast active
  • 1Replies
  • 176Views
  • 3 Following