Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I remove a library from the arduino environment?

In the Arduino GUI on windows, if I click on Sketch --> Import Library, at the bottom of the menu there is a section called "Contributed".

Unfortunately, I had misclicked and added a library I did not want to that list.

How can I remove it from that list?

The help page only mentions that "If a sketch no longer needs a library, simply delete its #include statements from the top of your code" but it does not mention how to remove the library from the list of contributed libraries.

like image 280
merlin2011 Avatar asked May 25 '13 18:05

merlin2011


People also ask

Where are Arduino libraries stored?

Please note: Arduino libraries are managed in three different places: inside the IDE installation folder, inside the core folder and in the libraries folder inside your sketchbook.

How do I change the library in Arduino?

You can find or change the location of your sketchbook folder at File > Preferences > Sketchbook location. Copy it in the "libraries" folder inside your sketchbook. Start the Arduino Software (IDE), go to Sketch > Include Library. Verify that the library you just added is available in the list.

How do I change my Arduino IDE library path?

Select File > Preferences... from the Arduino IDE menus. Set the Sketchbook location preference to the new location you want for the sketchbook. Click the OK button.

How remove add from Arduino?

So you can delete them from there using your operating system's tools. Restart the IDE after that. There is also a little down arrow in the IDE at the right hand side of the border containing the tabs. Click it and choose delete (after you have selected the correct file).


2 Answers

Go to your Arduino documents directory; inside you will find a directory named "Libraries". The imported library directory will be there. Just delete it and restart the Arduino app.

Your Arduino library folder should look like this (on Windows):

  My Documents\Arduino\libraries\ArduinoParty\ArduinoParty.cpp   My Documents\Arduino\libraries\ArduinoParty\ArduinoParty.h   My Documents\Arduino\libraries\ArduinoParty\examples   .... 

or like this (on Mac and Linux):

  Documents/Arduino/libraries/ArduinoParty/ArduinoParty.cpp   Documents/Arduino/libraries/ArduinoParty/ArduinoParty.h   Documents/Arduino/libraries/ArduinoParty/examples 

The only issue with unused libraries is the trivial amount of disk space they use. They aren't loaded automatically so don't take up any application memory of the Arduino IDE.

like image 173
spring Avatar answered Sep 28 '22 17:09

spring


Quote from official documentation as of August 2013:

User-created libraries as of version 0017 go in a subdirectory of your default sketch directory. For example, on OSX, the new directory would be ~/Documents/Arduino/libraries/. On Windows, it would be My Documents\Arduino\libraries\. To add your own library, create a new directory in the libraries directory with the name of your library. The folder should contain a C or C++ file with your code and a header file with your function and variable declarations. It will then appear in the Sketch | Import Library menu in the Arduino IDE.

To remove a library, stop the Arduino IDE and remove the library directory from the aforementioned location.

like image 36
feklee Avatar answered Sep 28 '22 16:09

feklee