Last active
May 25, 2022 13:59
-
-
Save adnanzameer/0a90ab98b074879b00331754e2823563 to your computer and use it in GitHub Desktop.
SQL script to empty Episerver trash/recycle bin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @pkid int | |
DECLARE db_cursor CURSOR FOR SELECT pkid FROM tblContent tbl where deleted = 1 | |
OPEN db_cursor | |
FETCH NEXT FROM db_cursor INTO @pkid | |
WHILE @@FETCH_STATUS = 0 | |
BEGIN | |
EXEC [dbo].editDeletePage @PageID = @pkid, @ForceDelete = 1 | |
FETCH NEXT FROM db_cursor INTO @pkid | |
END | |
CLOSE db_cursor | |
DEALLOCATE db_cursor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!!!! You saved my day!