We do not currently know of any antonyms for serve a purpose.
For similar words to serve a purpose, try: