To unpublish a quiz, hover over the published icon and view its status. If the quiz can be unpublished, the hover text will confirm you want to unpublish the quiz [1]. Click the icon to confirm.
Quizzes with student submissions cannot be unpublished, and the hover text will notify you accordingly [2].