removes all references to label if label is removed