Bug 9184

Summary: Cannot delete layer from toaster database
Product: [Build System, Metadata & Runtime] Toaster Reporter: Henry Bruce <henry.bruce>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: RESOLVED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: enhancement    
Priority: Medium+ CC: belen.barros.pena, bluelightning, brian.avery, jessica.zhang, stanciux.mihail
Version: unspecified   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Henry Bruce 2016-02-29 19:50:12 UTC
If you incorrectly add a layer (see bug 8952) there appears to be no way to remove it from database.
Comment 1 Belen Barros Pena 2016-03-01 11:50:33 UTC
We have a few 'delete'-related things to do: see bug 8132 and bug 6238. We should probably do all those in 2.2
Comment 2 brian avery 2016-03-09 16:35:19 UTC
Nice bug find!
Umm, a request: could you add a steps to reproduce?

Something like 
1) import layer button
2) import python-networking from 
....
ty :)
Comment 3 Henry Bruce 2016-03-14 22:50:28 UTC
Sorry, poor bug report.

Here's an example use case
1. You import a layer with recipes, say github.com/old-iot-stuff/layer
2. You find out you imported an un-maintained layer, you should have imported github.com/new-iot-stuff/layer
3. You want to remove the old-iot-stuff layer from toaster as it will only ever cause problems
4. You remove from a project, but you can't remove it form toaster

Expected behavior
-----------------
1. Import a layer with recipes, say github.com/old-iot-stuff/layer
2. You realize it's a stale layer and want to remove it
3. Remove from toaster using (say) "remove layer from database" button

Observed behavior
-----------------
1. Import a layer with recipes, say github.com/old-iot-stuff/layer
2. You realize it's a stale layer and want to remove it
3. You can't remove it form toaster