Skip to content

Commit 9e94b75

Browse files
docs: additional project file delete example
Showing how to delete without having to pull the file
1 parent 1606310 commit 9e94b75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/gl_objects/projects.rst

+2
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ encoded text::
376376
Delete a file::
377377

378378
f.delete(commit_message='Delete testfile', branch='master')
379+
# or
380+
project.files.delete(file_path='testfile.txt', commit_message='Delete testfile', branch='master')
379381

380382
Get file blame::
381383

0 commit comments

Comments
 (0)