Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Maha 3 posts 23 karma points
    Jun 17, 2014 @ 12:28
    Maha
    0

    Delete items in Recylce Bin

    I m using umbraco v 4.5.2 (Assembly version: 1.0.3891.20719). I m using umbraco in dev , qa and production. I need to delete items in recycle bin.

    Used below query for deleting from DEV and QA

    delete from cmsPreviewXml where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20 )
    delete from cmsContentVersion where contentId in (select id from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20 )
    delete from cmsDocument where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20 )
    delete from cmsContentXML where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20 )
    delete from cmsContent where nodeId in (select id from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20 )
    delete from cmsPropertyData where contentNodeId in (select id from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20 )
    delete from umbracoNode where path like '%-20%' and id!=-20 and parentID=-20

     

    Please give your comments on this query execution for prod Umbraco??

     

     

  • Maha 3 posts 23 karma points
    Jun 18, 2014 @ 12:25
    Maha
    0

    Hi can anyone help me on this?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 18, 2014 @ 12:36
    Dave Woestenborghs
    0

    Why don't you delete the items from the backend ? Are you having trouble with that function ?

    Dave

  • Maha 3 posts 23 karma points
    Jun 19, 2014 @ 07:32
    Maha
    0

    Thanks Dave.

    I have used this query from backend.

    I found few pages in my web site were down once i executed this?

    Any idea for this root cause?

    If i can validate it , i can execute this in LIVE site.

    Please help

     

  • Fredrik Esseen 610 posts 906 karma points
    Jun 19, 2014 @ 08:43
    Fredrik Esseen
    0

    In the administration part of Umbraco you have the possibility to empty the recycle bin by right clicking and select "Empty recycle bin". Have you tried that?

Please Sign in or register to post replies

Write your reply to:

Draft