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.
MIT License
970 stars 49 forks source link

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

Closed nosovk closed 1 year ago

nosovk commented 1 year ago

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.

kyoshino commented 1 year ago

Iā€™m aware of the same issue in Netlify/Decap CMS: https://github.com/decaporg/decap-cms/issues/6642

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

kyoshino commented 1 year ago

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

Sorry to keep you waiting šŸ™‡šŸ¼