4.8 Cleaning Virgo Tomcat Server without Starting it
Prev | 4. Starting and Stopping Virgo Tomcat Server | Next

## 4.8 Cleaning Virgo Tomcat Server without Starting it

When you clean Virgo Tomcat Server, the startup script removes the `SERVER_HOME/work` directory (and hence all running applications) as well as all trace, log and dump files. It leaves the `SERVER_HOME/repository` and `SERVER_HOME/pickup` directories untouched, which means that any applications previously hot deployed will be automatically reinstalled next time the Web Server is started.

Cleaning is useful when you want to start the Web Server from a clean state next time, but you don't want to start the Web Server yet.

Cleaning is also useful for tidying up the directory structure. For example, sometimes Microsoft Windows won't let you delete the Web Server installation directory. See Problem Deleting Installation Directory under Windows for more details.

### Linux

To clean Virgo Tomcat Server, open a terminal window and run `startup.sh -clean -noStart`:

    prompt$ cd $SERVER_HOME
    prompt$ bin/startup.sh -clean -noStart

### Microsoft Windows

To clean Virgo Tomcat Server, open a command window and run `startup.bat -clean -noStart`:

    prompt> cd %SERVER_HOME%
    prompt> bin\startup.bat -clean -noStart

Prev | Up | Next
4.7 Stopping Virgo Tomcat Server | Home | 5. Overview of the Virgo Kernel and User Region