When you drag out a block from a Scratch 2.0 dropdown, a stringified version of the block spec tree is left in the input. Probably the fix here would be setting the input values to some default value ...
Deleting an input on a block should clean up everything associated with it. The input, connected block, and shadow block are deleted. The input shape is not deleted. In this gif there's only one input ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results