Hi,
I'm liking the ability to create a view on the fly in the blocks editor. However, I have some views I created that way that I no longer want around. How can I delete them?
You can trash and then you delete them, in Toolset > Views, but if you use blocks with only the block interface you won't see that menu, you could, however, enable it in Toolset > Settings > General > Editing experience, check Show both the legacy and Blocks interface and let me choose which to use for each item I build
I'm honestly not sure how one would be supposed to delete those Views if using "only" blocks and I have created an internal ticket for this, as it seems true that using only Blocks you can't delete existing views.
With the above workflow which I suggested you can, but that is cumbersome.
I will let you know the response of our developers here next week.
Thank you. That did it. I think it's just a usability issue. Reading that Views has gone and then finding it in blocks, but without it having its own page. No big deal now it's sorted. Thanks. The upgrades are great!
My issue is resolved now. Thank you!
I've reopened this thread so I can inform you later on the exact expected process.
It seems those Views should be deleted automatically if you delete their last instance in any page.
I spoke against that, as this would be "dangerous" in the sense that by mistakenly delete the last View instance you'd then realistically delete an eventual high amount of work!
So I will have to wait what the exact expected way of removing those Views is, and will update you later.
Thanks, I think you are right. To have the view disappear would be an unexpected behaviour. I could certainly see my self removing the last instance with the intention of re-using it later.
+1
This seems like quite a dangerous omission, indeed -- there should still be a page where any added Views can be managed, and auto-deleting a View if its last known use is deleted is definitely not something I would expect to happen. I'm glad I stumbled on this thread before getting deep into it or I would have definitely lost lots of work!
On further inspection, on deleting the last instance of a View (and its page), and this doesn't actually happen for me. I created a Test View in the Block editor, and after deleting both the instance and then the page itself, the Test View still appears. Additionally, the block is corrupt and needs Resolving, which seems to convert the first <div> sections into HTML.
Is there a reason not to be using the classic Views plugin, since it's significantly less buggy? Or is there functionality here that's unique to the Block editor?
In reply to @nicholasg-2
There is nothing dangerous about it.
You can just not delete a View that was created, nothing will break, however.
If you want to delete those views you can temporarily activate the legacy editing "Show both the legacy and Blocks interface and let me choose which to use for each item I build" in the settings, and delete them in Toolset > Views.
This was elaborated here https://toolset.com/forums/topic/how-to-delete-view-created-in-block/#post-1452575
The mechanism is expected to delete the View if removing its last instance from the last page it is used on.
https://toolset.com/forums/topic/how-to-delete-view-created-in-block/#post-1463373
But, I spoke against this and opened an issue internally for the developers to A) not make it so that deleting the last instance will delete the view and B) provide a way to delete these views safely.
You can, if you want, use Views, but you will not be able to create new Views in blocks if doing so.
That's only possible with the Blocks variant.
I hope this helps!
Has there been any progress on this? I have a lot of views that I would like to delete. I used the workaround with the legacy interface, but it would be nice to have something official in the future.