Dear Kamran,
After having experienced the same matter, and before reading this post, i went into the database to delete all data related to the template page...
Working but boring!
I did not try your solution but don't you think just adding a dedicated checkbox into the admin panel to cancel the file will be the easiest solution ?
(I am not a developer, so maybe this suggestion is inappropriate...)
Great stunning piece of work anyway, i am seriously thinking to implement it on my own website.
Thank you for that
Eric
After having experienced the same matter, and before reading this post, i went into the database to delete all data related to the template page...
Working but boring!
I did not try your solution but don't you think just adding a dedicated checkbox into the admin panel to cancel the file will be the easiest solution ?
(I am not a developer, so maybe this suggestion is inappropriate...)
Great stunning piece of work anyway, i am seriously thinking to implement it on my own website.
Thank you for that

Eric