If you are talking about NM cable then, No but I have heard some inspectors make others terminate it in a JB. If it is not connected at either end then it has nothing to do with us. I do try and remove what I can but it is not necessary.Does it have to be removed if it's not being used? Thank you.
I only see the cables listed in sec 820.25 and 830.25 that would have to be removed or identified for future use. Could be a local rule.