clear inputs and outputs on delete (closes #45)