Copied to clipboard

Flag this post as spam?

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


  • Bogdan 250 posts 427 karma points
    Jul 10, 2009 @ 13:47
    Bogdan
    0

    delete nodes without moving them to recycle bin

    Hi,

    I'm using Document.DeleteFromType(someDocumentType); to delete nodes, but they are also moved to recycle bin. Is it possible to delete them 'completely'?

  • Sjors Pals 617 posts 270 karma points
    Jul 10, 2009 @ 14:06
    Sjors Pals
    0

    Hi bfi, i am not sure, but you can maybe find the method used if the bin is cleared and call that one from your code.

  • Bogdan 250 posts 427 karma points
    Jul 10, 2009 @ 14:18
    Bogdan
    0

    thanks for the reply, I was also thinking of using a method to clear the recycle bin, unfortunatelly I cannot find it.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 10, 2009 @ 14:26
    Dirk De Grave
    0

    use the trashcan webservice from the umbraco.presentation.webservices namespace...

    [WebMethod] public void EmptyTrashcan() {}

     

    Hope this helps.

     

    Regards,

    /Dirk

     

  • Bogdan 250 posts 427 karma points
    Jul 10, 2009 @ 15:13
    Bogdan
    0

    The method umbraco.presentation.webservices.trashcan.EmptyTrashcan(); doesn't seem to ba available. Isn't this how I'm supposed to call it?

    Thanks!

  • Bogdan 250 posts 427 karma points
    Jul 13, 2009 @ 11:28
    Bogdan
    0

    Or is there a way to disable recycle bin completely?

  • Ken Mark 82 posts 94 karma points
    Sep 08, 2009 @ 18:46
    Ken Mark
    0

    Maybe this would be interesting?

    http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=16914

     

     

     

Please Sign in or register to post replies

Write your reply to:

Draft