Urgent Help Needed

Good afternoon sorry to ask for stuff on my first postbut I am at my wit’s end All I see are fake and misleading articles and videos looking to get views.I am trying to remove Icloud from an Iphone 5 on 9.3.1 It is activated and works not locked I heard something about udid that can remove it from the phone not the server but it can restore phone to 100% functionalityI see a guide on the ebay that teaches people how to do it for $ 5 but in my experience these cheap tutorials can be had for free Does anyone know how to do it?