More in this section
Forums / Bugs & Issues / Template still attached to deleted pages

Template still attached to deleted pages

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Chip
    Chip avatar
    14 posts
    25 Nov 2013
    21 Oct 2014
    Link to this post
    I cannot delete a couple of templates because they are still flagged as in use by pages. These pages were deleted a while back. Can I manually delete the relationships in the database since they are still showing a relationship? Is this a foreign key constraint of some sort that denies deletion of a template? 
  2. Bobby
    Bobby avatar
    10 posts
    22 Nov 2016
    22 Oct 2014
    Link to this post
    Hi Chip,

    That problem is probably related to the Recycle Bin module, if you delete a page and it goes to the Recycle Bin module, the relation between the page and its template persists.

    As a quick fix you can permanent delete those pages that does not allow you to delete the template.

    If you're not using RB module, can you please provide us with more information about the problem like are these pages in multilingual / multisite mode and when you click on the template counter do you see the name of the pages there like here.

    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
  3. Carl
    Carl avatar
    0 posts
    11 Oct 2013
    06 Feb 2017 in reply to Bobby
    Link to this post
    I have this same problem. I deleted the page and then emptied the recycle bin. The recycle bin says it is empty and the pages listing does not have the page listed at all, but I still can't delete the template. When I click on it from this screen I get a 404
3 posts, 0 answered