title: How to reset / clean a GitLab repository
body: <p>I want to reset one of my repositories on gitlab, but without deleting the whole project.</p>
  
  <p>I've read on Gitlab Forums (on the post <a href="https://forum.gitlab.com/t/how-can-i-delete-a-repository-and-push-a-new-one/690" rel="noreferrer">https://forum.gitlab.com/t/how-can-i-delete-a-repository-and-push-a-new-one/690</a>) two different options:</p>
  
  <p>First: Deleting the physical repository from disk. I've tried renaming the folder (repo.git) but then, gitlab gives me a 404 error trying to access to it.</p>
  
  <p>Second: Deleting all branches. This solution do not work too, because, I cannot delete the main branch (on my case master), and when I create a new one, the new branch requires to specify a "original" branch. I cannot create a clean branch without any data and change the main to it.</p>
  
  <p>Someone know how to do it?</p>
  
  <p>Thanks,</p>