Skip Navigation

[Escalated to 2nd Tier] How to delete view created in block

This support ticket is created 4 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 9 replies, has 4 voices.

Last updated by NickC8880 4 years, 10 months ago.

Assisted by: Nigel.

Author
Posts
#1451875

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?

#1452575

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.

#1453127

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!

#1453129

My issue is resolved now. Thank you!

#1463373

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.

#1465567

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.

#1481499

+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!

#1481505

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?

#1482351

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!

#2114397

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.