Delete a user’s goal.
curl --request DELETE \ --url http://dolphinflashcards.com/api/delete-goal \ --header 'Content-Type: application/json' \ --data '{ "userID": "user1", "goalID": "goal1" }'
{ "success": "Goal deleted successfully" }
The response is of type object.
object