# Other packages depend on it

What "can't remove, other packages depend on it" means and how to fix it.

```text
error: can't remove @acme/ui: web, admin depend on it
hint: Take it out of their dependencies first, then run axle generate remove again. Nothing was removed.
```

## Why it happens

[`axle generate remove`](https://axlers.dev/docs/reference/generate.md#removing-a-package) deletes a package only when no other package in the workspace lists it among its dependencies. Removing it would leave those packages importing something that's gone, and the next install or build would fail.

## How to fix it

Take the package out of the `dependencies`, `devDependencies` or `peerDependencies` of each package the error names, and remove the imports that use it, then run it again:

```sh
axle generate remove @acme/ui
```

To keep the package and only put it somewhere else, [move it](https://axlers.dev/docs/reference/generate.md#moving-a-package) instead.
