adminepiserverepiserver-6-r2

EPIServer 6 doesnt let admin delete page


I have an issue where EPIServer 6 says "insufficient privileges to change this page". I am 100% sure that I'm the highest admin available, and I have tried on my colleagues admin accounts aswell.

This is the icon showing:

enter image description here

The page was previously forcefully deleted from the project giving a and error when trying to access it from the menu. I added the page back in the project, but still cannot delete it via episerver on the page..

Any ideas? Google search turns up dry..


Solution

  • If you have access to the EPiServer database directly you can run this script in order to force delete a page. At least if you're using EPiServer 6.

    --- Force EPiServer page deletion
    declare @pageIDtoDelete int
    set @pageIDtoDelete = <INSERT PAGE ID HERE>
    
    delete from tblWorkProperty where fkWorkPageID in (select pkID from tblWorkPage where fkPageID = @pageIDtoDelete)
    delete from tblWorkPage where fkPageID = @pageIDtoDelete
    delete from tblProperty where fkPageId = @pageIDtoDelete
    delete from tblAccess where fkPageID = @pageIDtoDelete
    delete from tblPageLanguage where fkPageID = @pageIDtoDelete
    delete from tblPage where pkID = @pageIDtoDelete