FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-gitlab/tools/reset_gitlab.py at master · b443/python-gitlab · GitHub
b443
python-gitlab
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-gitlab
/
tools
/
reset_gitlab.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (14 loc) · 446 Bytes
Breadcrumbs
python-gitlab
/
tools
/
reset_gitlab.py
Copy path
File metadata and controls
executable file
·
20 lines (14 loc) · 446 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
import
sys
from
gitlab
import
Gitlab
def
main
():
with
Gitlab
.
from_config
(
config_files
=
[
"/tmp/python-gitlab.cfg"
])
as
gl
:
for
project
in
gl
.
projects
.
list
():
project
.
delete
()
for
group
in
gl
.
groups
.
list
():
group
.
delete
()
for
user
in
gl
.
users
.
list
():
if
user
.
username
!=
"root"
:
user
.
delete
()
if
__name__
==
"__main__"
:
sys
.
exit
(
main
())
Back
|
FazBrowse Home
|
New Git URL