if you haven't thrown away your method (like blades or smth) then you should do that first. truth is, the urge is always gonna be there, so you should eliminate anything that helps you act on it
but when you get those urges, having a distraction can really help, like a good show or game or a hobby you can throw yourself into. maybe take your feelings out onto some paper and write them down so you can process it better. or you can go for a run, or punch a pillow, etc...
i think, to find what works, it depends on why you wanna hurt yourself in the first place; there's a lot of ways to deal with different emotions that aren't self-destructive.
you've made it this far, and that's something to be proud of already ! i really hope you find something that works for you.