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
750 stars 34 forks source link

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

Closed nosovk closed 7 months ago

nosovk commented 10 months 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 10 months 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 7 months ago

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

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