Delete group functionality and delete flashcard functionality