sveltia / sveltia-cms

Alternative to Netlify/Decap CMS. Fast, lightweight, Git-based headless CMS. Modern UX, first-class i18n support, open source & free. Made with Svelte.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if we have one article = one directory setup, then folder not deleted upon article removal.

nosovk opened this issue · comments

If we make use of we use Folder Collections Path and Folder Collections Media and Public Folder for content structure setup we have issue with folder deletion.

We got structure like that:

content/article1/index.md
content/article1/image1.jpg
content/article2/index.md
content/article2/image2.jpg

If we are going to delete article1 from sveltia, then content/article1/index.md removed, but the folder with contents (content/article1/image1.jpg) still persists. We expect that folder deleted with an article and all related images.

Proposed solution: add flag to delete folder with all content.

I’m aware of the same issue in Netlify/Decap CMS: decaporg/decap-cms#6642

Will figure out how it could be done in Sveltia CMS.

The fix is live! https://github.com/sveltia/sveltia-cms/releases/tag/v0.8.5

Sorry to keep you waiting 🙇🏼