Skip Navigation

[Resolved] Can’t delete old unused Content Template

This thread is resolved. Here is a description of the problem and solution.

Problem:

I am trying to:Delete a Content Template from a previous install of Toolset that had been removed.

Solution:

This is an exception, you can remove a hidden custom field of content template by SQL query, for example:

https://toolset.com/forums/topic/cant-delete-old-unused-content-template/#post-1138895

Relevant Documentation:

This support ticket is created 6 years, 2 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by guyH 6 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1138401

I am trying to:Delete a Content Template from a previous install of Toolset that had been removed. There are NO views on the site. I tried to create a view to use this template (Loop item in Gig View), then delete the view to try to delete the obsolete content template. No luck.

Link to a page where the issue can be seen:hidden link

I expected to see:No Content Templates, because there are no Views.

Instead, I got:An orphaned Content Template called "Loop item in Gig View" that can't be deleted.

#1138895

Hi,

This is really strange, I have done below modification in your website:
1) Install the "Run SQL Query" plugin in your website
https://wordpress.org/plugins/run-sql-query/

2) Tool-> Run SQL Query

Run below SQL query to remove a item in your database:
DELETE FROM `song_postmeta` WHERE `song_postmeta`.`post_id` = 281 AND `song_postmeta`.`meta_key` = '_view_loop_id'

3) Remove the "Run SQL Query" plugin from your website.

Please test again, try to remove that content template again.

#1138955

My issue is resolved now. Thank you!