function for deleting goals