How to disable motion path's

I had this issue a few times now. There is a motion path in the viewport that i can’t get rid of. The usual way, by clicking ‘clear object path’ doesn’t work. The last time i had this i managed it somehow but can’t remember how i did it. Someone got an idea?