Node.remove()

4 messages Options
Embed this post
Permalink
Thomas Fromm-2

Node.remove()

Reply Threaded More More options
Print post
Permalink
Hi,


if I want to remove a node with all its versions, then I have to remove all
versions of this node with VersionHistory.removeVersion(..) and then remove
the node itself by calling Node.remove()?

Or exist there an easier way?

--tf
Marcel Reutegger

Re: Node.remove()

Reply Threaded More More options
Print post
Permalink
On Thu, Jul 2, 2009 at 09:33, Thomas Fromm<[hidden email]> wrote:
> if I want to remove a node with all its versions, then I have to remove all
> versions of this node with VersionHistory.removeVersion(..) and then remove
> the node itself by calling Node.remove()?
>
> Or exist there an easier way?

no, there is no other way. you have to do it manually as you described it.

regards
 marcel
Thomas Fromm-2

Re: Node.remove()

Reply Threaded More More options
Print post
Permalink
On Friday 03 July 2009 15:43, Marcel Reutegger wrote:
> no, there is no other way. you have to do it manually as you described it.

When I try to remove all versions I get this error, when deleting the last
version:
Unable to remove version. At least once referenced.

Will the last version of the node be removed, when I call node.remove() ?

--tf
Sébastien Launay

Re: Node.remove()

Reply Threaded More More options
Print post
Permalink
Thomas Fromm a écrit :

> On Friday 03 July 2009 15:43, Marcel Reutegger wrote:
>  
>> no, there is no other way. you have to do it manually as you described it.
>>    
>
> When I try to remove all versions I get this error, when deleting the last
> version:
> Unable to remove version. At least once referenced.
>
> Will the last version of the node be removed, when I call node.remove() ?
>
> --tf
>  
Hi Thomas,

You may find answers about version history in the following threads:
http://markmail.org/message/7aildokt74yeoar5
http://markmail.org/message/nhbwe7o3c7pd4sga

--
Sébastien Launay