SQL script to show / remove the asset folder id's that are empty? (proposal included) #7058
Unanswered
e4rthdog
asked this question in
Help / Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
By now i think that the only issue i have with wiki.js and github sync is the fact that it creates orhpan folders if you remove files from them.
Is there anyone that has any script to search through
assets
andassetFolders
tables and print out the IDs of the folders that are empty, taking care also the parent->child relationship[s of folders?Meaning that i would need to clear out the whole folder tree if all of them are empty.
More Info:
After playing with Chat GPT i got his script that i think it delivers. For anyone that can verify:
Beta Was this translation helpful? Give feedback.
All reactions