# Removed components/devices still in project

**URL:** <https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472>\
**Category:** Help\
**Created:** [May 20, 2022, 3:51pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472 "2022-05-20T15:51:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)\
**Post date:** [May 20, 2022, 3:51pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/1 "2022-05-20T15:51:12Z")

</div>

I simplified a schematic and removed a lot of components, however they still appear in the list of devices to place on the board, and also in the list of errors for unconnected component pins.

It seem the project still thinks they are there even thoughi delted them from the schematic. They were never placed on the board.

How can I make it forget the removed components?

---

<div class="post-metadata">

**Author:** ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)\
**Post date:** [May 20, 2022, 4:00pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/2 "2022-05-20T16:00:18Z")

</div>

I originally created this schem by copying a schematic from an existing project schem into a blank schem in a new project.

I just tried this again - copying like that causes all sort of problems… some part numbers are reset, and some connections lost.

we really need a better way to fork an entire project. I thought copying the schem into a new blank project would be safer that cloning the folder in the fidner but it seems not.

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [May 20, 2022, 10:59pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/3 "2022-05-20T22:59:07Z")

</div>

Could you describe the exact steps how to reproduce this issue? Or create a video how you can reproduce it? And which LibrePCB version are you using?

If these components are really not used anymore, you could remove them manually from the file `circuit/circuit.lp` in the project directory. Just search for the corresponding component names and remove the corresponding `(component ... )` blocks. But make a backup first 😉

---

<div class="post-metadata">

**Author:** ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)\
**Post date:** [May 21, 2022, 10:28pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/4 "2022-05-21T22:28:33Z")

</div>

I haven’t found a simple way to reproduce it yet. I ended up redrawing the schem over from scratch and the problem hasn’t happened again.

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [May 21, 2022, 11:25pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/5 "2022-05-21T23:25:26Z")

</div>

OK I see. If you ever find out how to reproduce it, please let me know. This problem was already reported some time ago, but I was never able to reproduce it so I was not sure if it still exists…

---

<div class="post-metadata">

**Author:** ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)\
**Post date:** [June 2, 2022, 9:26am UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/6 "2022-06-02T09:26:46Z")

</div>

I’m seeing this repeatedly.

Try this procedure to replicate -

- make a scehmatic including devices that have more than one symbol required to represent them in the schem (like a dual opamp)

- copy that schematic from another project into a new empty project.

- remove all the symbols for the dual opamp.

- replace it with a new similar device requring dual symbols (this bit may not be needed)

- look in the device placement list in the baord editor and note the removed device is still there even though itcan’t be seen on the schem.

---

<div class="post-metadata">

**Author:** ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)\
**Post date:** [June 2, 2022, 9:30am UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/7 "2022-06-02T09:30:16Z")

</div>

actually every component shows in the ERC as unconnected. I think copying the schem to a new project is basically broken. I giuess thats the same as I found earlier.

---

<div class="post-metadata">

**Author:** ![ubruhin](https://avatars.discourse-cdn.com/v4/letter/u/c89c15/32.png) [@ubruhin](https://librepcb.discourse.group/u/ubruhin)\
**Post date:** [June 2, 2022, 6:12pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/8 "2022-06-02T18:12:29Z")

</div>

Aaaah, thanks for the hint! 🎉

Found the issue and fixed it so this problem should be solved with the next release:

> <https://github.com/LibrePCB/LibrePCB/pull/985>
>
> Components with multiple symbols (gates) were added multiple times
> to the circu…it after copy&paste, leading in stale components which
> could not be removed anymore since they had no symbol in the schematic.
> 
> See
> https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472

Except that it is annoying, this bug is not critical for the integrity of a project. The workaround by manually removing these components from `circuit.lp` will safely clean up the stale components, so this is the way to go until the next release is available.

---

<div class="post-metadata">

**Author:** ![parenthetical](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@parenthetical](https://librepcb.discourse.group/u/parenthetical)\
**Post date:** [June 2, 2022, 6:44pm UTC](https://librepcb.discourse.group/t/removed-components-devices-still-in-project/472/9 "2022-06-02T18:44:55Z")

</div>

great!

I’m really looking forward to the next release - it sounds like there are lots of things fixed already.
