-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managing assets, no obvious way to delete #1195
Comments
Sadly, management of attachments is not yet supported according to the documentation. Idea: if the attachments (added to the space either by calling the attachment where !parent or we could list all attachments in certain space slice: attachment where parent =~ /^Example\// Of course, if you copy a file into the space from the OS and do not link/embed it from any page, there still will be no way for SilverBullet to index it. But that would only be a minor limitation (at least from my point of view). Once having such attachment parents indexing implemented, and providing that there exists already a way to delete content from SilverBullet space script, creating a custom command to garbage collect all orphaned attachments would be fairly easy. |
Related issue: #72 |
I have created a solution to easily delete orphaned Attachments, you can find the info here #1140 It requires 2 space-script (one to get the list of attachments, the other to create a delete file function), and the final result is a list of orphaned attachment with a button to delete them. Be cautious in what you delete and be sure to have the space tracked in git, so if something goes wrong you can revert it. |
I came across this today - copying(ctrl-c, ctrl-v) an image or file and then removing its reference from the page keeps the image or file stored with no obvious way to remove.
Steps to recreate
It would be great to be able to see a list of media assets, this could be images, pdf's, zips, iso's etc.. any linkable file and see if there is a reference anywhere within the space or if it is orphaned content, and if so allow deletion. If that information was present, it would be very to cleanup old and unused assets.
Let me know if I am way off base, and there is an alternative way to do this, but searching around github, the command list and documentation I do not see a real way to do this. Also - awesome piece of software, your work does not go unappreciated.
The text was updated successfully, but these errors were encountered: