Deleting a Duolingo course is done via the website or official mobile app:
On desktop: Log in >>click your profile picture >>Settings >> “Manage Courses” >>click Remove next to the course >>confirm
On iOS/Android: Go to Profile >> Settings >> Manage Courses >> tap Remove beside the course >> confirm
You must keep at least one course per base language.