# Clearing the Cache

As an artifact server Seal only has visibility to those artifacts that are pulled by the build machine. Therefore, if instead of pulling libraries from an artifact server the build machine uses a locally cached copy, the Seal server will be unaware of its usage.

To get an up-to-date snapshot of the packages used as part of your build process, you should first clear your package manager's cache.

#### Javascript:

* For npm run:

```bash
npm cache clean --force
```

* For Yarn v1 run:

```bash
yarn cache clean
```

* For Yarn v2 and later run:

```bash
yarn cache clean --all
```

* For pnpm run:

```bash
pnpm store prune
```

#### Python:

* For pip run:

```bash
pip cache purge
```

* For Poetry run:

```bash
poetry cache clear --all
```

#### Java:

* For Maven run:

```bash
mvn dependency:purge-local-repository -DactTransitively=false -DreResolve=false
```

* For Gradle run:

```bash
rm -rf $HOME/.gradle/caches/
```

#### Go:

* For Go run:

```bash
go clean -modcache
```

**Composer:**

* For compose run:

```bash
rm -rf vendor/
```
