implement gadget & attached-wires deletion