# Removing a plugin

Since Ionic 5 Full App is a huge project, you might not need all the plugins for all your requirements. Unnecessary plugins can cause issues with build, or at least cause the build to become heavy.

In most cases, you would want to remove a plugin from the project. Always remove a plugin using cordova CLI

```
$ ionic cordova plugin rm plugin-name
```

Sometimes user remove plugins by deleting the plugin folder from `plugins` folder, but the plugin is defined in `config.xml` as well as `package.json` . Removing the plugin using the CLI removes all trace of it.&#x20;

### Modifying dependencies of a plugin

If you are modifying dependencies of a plugin, it is preferable to do it in `config.xml` and/or `package.json`

Modifying plugin in `plugins` folder will not always work because on a new project setup, the plugin will again pick the dependencies from `config.xml` and/or `package.json`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enappd-apps.gitbook.io/apps/ionic-4-full-app/removing-a-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
