To DNF a book on Goodreads, go to your "Read" shelf and click the three dots next to the book you want to remove. Select "DNF" from the drop-down menu.