---
title: "clearScriptPaths"
canonical: "https://help.vicon.com/space/Shogun19/13795832/clearScriptPaths"
format: markdown
---
# Description

Clears all items from the list of directories that is searched by Shogun Post to generate the internal list of scripts and pipelines.

This list can also be viewed at the top of the **Directories** tab in the **Preferences** dialog.

> ⚠️ **Caution**   
> ⚠️ Removing the default paths may cause some UI buttons to fail if the internal list of scripts and pipelines is rebuilt by reparsing the script directories.

## Functional area

System

# Command syntax

## Syntax

|  |
| --- |
| `clearScriptPaths;` |

### Arguments

None

### Flags

None

## Return value

Void

## Examples

```plaintext
// Clear existing script directories and replace with a new script 
// directory and re-load scripts and pipelines
clearScriptPaths;
addScriptPath "C:/My Documents/Shogun/MyScripts/" -reparse;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [addScriptPath](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795762)
- [deleteScriptPath](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13795940)
- [getScriptPaths](https://vicon-help.atlassian.net/wiki/spaces/Shogun19/pages/13796238)