Hi, I am trying to delete everything in the gitlab repository, so I simply make a commit with no files. But the thing is that Gitlab database kept all my files, so every time I check out from gitlab, even with nothing in master or other branches, it still has 5300 objects to pull from. My Question is, is there anyway that I can clean up everything, even the gitlab data base, and reconstruct a new repo(with 0 objects, just brand new)? I don’t want to pull 5300 objects, when I don’t need anything. Thanks.
If you truly want to start fresh for a project you have several options.
-
Simple & Nuclear: Simply navigate to your Project > Settings > General. Scroll all the way to the bottom and press
Remove project
. It should provide a prompt where you need to enter the project name to confirm deletion. You can then delete the local copy of the project and create a new project.
-
Git tools & more involved: If you have deleted all other branches, and there is nothing displayed on your master branch, all of the commits (that had old files) still exist. See this tutorial for more