Skip to content

Implement --clear flag to delete subpages before uploading#114

Open
stevengoossensB wants to merge 6 commits into
iamjackg:developfrom
stevengoossensB:master
Open

Implement --clear flag to delete subpages before uploading#114
stevengoossensB wants to merge 6 commits into
iamjackg:developfrom
stevengoossensB:master

Conversation

@stevengoossensB
Copy link
Copy Markdown

Refer to: #62

Adding the --clear flag to a command will first delete all subpages of the parent page before uploading the new ones

@iamjackg iamjackg changed the base branch from master to develop October 22, 2023 01:18
Comment thread md2cf/api.py
Comment thread md2cf/api.py
Comment thread md2cf/__main__.py Outdated
Comment thread md2cf/__main__.py Outdated
geopanther added a commit to geopanther/mdfluence that referenced this pull request May 13, 2026
Add --clear flag that recursively deletes all child pages under the
specified --parent-id before uploading new content. Requires
--parent-id to be set. Also adds delete_page() and get_child_pages()
to the API client, and handles HTTP 204 no-content responses.

Adapted from iamjackg/md2cf#114 by @stevengoossensB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants