Repository navigation
|
I added images to some collection folders, and it created new models for each collection. Now it prompts me to merge all the models within the collection with the new model. I have removed the images, but I cannot remove the model without re-creating the entire collection. Is there a way for me to just delete these errant models instead? |
Replies: 2 comments
|
I've added this as a feature request in #7321, and it looks like there's only one line to change, plus testing, so it might be quite straightforward to add. In the meantime, you should be able to remove it in the Rails console, by running I'd recommend taking a copy of the contents first though, running code in the console is definitely the danger zone, and that's code there is untested! |
|
I will try that, thank you |
I've added this as a feature request in #7321, and it looks like there's only one line to change, plus testing, so it might be quite straightforward to add. In the meantime, you should be able to remove it in the Rails console, by running
Model.find_param("the-id-from-the-model-url").destroy. Details of how to run things in the console are in the admin guide: https://manyfold.app/sysadmin/advanced_tasks.html#rails-console-commandsI'd recommend taking a copy of the contents first though, running code in the console is definitely the danger zone, and that's code there is untested!