Skip to content

Commit 5e711fd

Browse files
nejchJohnVillalovos
authored andcommitted
docs: add delete methods for runners and project artifacts
1 parent c01c034 commit 5e711fd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/gl_objects/pipelines_and_jobs.rst

+4
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ You can also directly stream the output into a file, and unzip it afterwards::
274274
subprocess.run(["unzip", "-bo", zipfn])
275275
os.unlink(zipfn)
276276

277+
Delete all artifacts of a project that can be deleted::
278+
279+
project.artifacts.delete()
280+
277281
Get a single artifact file::
278282

279283
build_or_job.artifact('path/to/file')

docs/gl_objects/runners.rst

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ Remove a runner::
7070
# or
7171
runner.delete()
7272

73+
Remove a runner by its authentication token::
74+
75+
gl.runners.delete(token="runner-auth-token")
76+
7377
Verify a registered runner token::
7478

7579
try:

0 commit comments

Comments
 (0)