Delete: Allow passing live
parameter
#22
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've been constantly having issues with Webflow CMS items not being properly synced.
I realized that removing the items is the most problematic.
I ended up publishing for every "delete".
I finally found a "cheaper" way to achieve this.
If we delete without
live: true
, the item will stay visible on the site until the site is published again.If we delete with
live: true
, the item will be set as draft and not visible on the site, but it will be visible in the Webflow CMS.We can call delete with
live: true
to remove it from the site (and make it a draft) and then call delete again, withoutlive: true
to remove the item from Webflow completely:To allow this functionality, I need the support for
live:
keyword argument todelete_item
method.