How to reset master branch in gitlab

In this article I will explain you how to reset master branch in gitlab. deleting a master branch directly is not possible in gitlab because the master branch is the default branch and its normally a protected branch. My use case...