From dev-return-25208-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Sep 01 20:14:05 2009 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 6810 invoked from network); 1 Sep 2009 20:14:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 20:14:05 -0000 Received: (qmail 8580 invoked by uid 500); 1 Sep 2009 20:14:04 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 8528 invoked by uid 500); 1 Sep 2009 20:14:04 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 8520 invoked by uid 99); 1 Sep 2009 20:14:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 20:14:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jukka.zitting@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 20:13:56 +0000 Received: by an-out-0708.google.com with SMTP id d40so277310and.1 for ; Tue, 01 Sep 2009 13:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Zi3Cv2YLKlU/3mEA+NC8aluAssuoGJKy/8eZdH+LQnw=; b=EUgVNgEGHMXUK4FiD6bfv1cqtOujd3EIEQ5p46ZjTTXNnKwGNa9ddj//E5pgMY7ROt KvMzHLbcQaJqu57SADZ8AUDJL3yc0tnuB3UGAQULKFQs+1WjoYlQGo3tFHAalz8biqtT M2yy9N2RhwPANQc2kB4RoCC28ZzotEYbRgVVk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ox/jdGtRAmRDpqZrA1aJXDMs0osWbTGKT+UzTNgDv4HxXieRzGI5GRQeZIMQPFx6CL h8eduQTFK2w6i/muVvMWqU2ScpP/dV4UfFBB8Q44v7sLpuZ+X0XQQqFZCyNL9O199cZG j8eF50lD4ZK6D0zmLfYb+AWoxiF3Vw2cYz8ms= MIME-Version: 1.0 Received: by 10.101.128.20 with SMTP id f20mr8146795ann.24.1251836015814; Tue, 01 Sep 2009 13:13:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 1 Sep 2009 22:13:35 +0200 Message-ID: <510143ac0909011313j601cec12p5411450c1d5f0810@mail.gmail.com> Subject: Re: What about deleting versions ? From: Jukka Zitting To: dev Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, As a general note, please use the users@jackrabbit.apache.org mailing list for questions about using Jackrabbit. On Tue, Sep 1, 2009 at 6:51 PM, arcassis@gmail.com wrote: > First of all I want to say that you, folks, are doing a great job with > Jackrabbit ! Thanks! > I have a short question: when I delete a versionable node, does JR > automatically delete all node's versions ? No. > If not, how can I delete the remaining orphan versions. Use the VersionHistory.removeVersion() method. Once you've removed all past versions and there are no remaining references to the version history, Jackrabbit (since version 1.6.0, see https://issues.apache.org/jira/browse/JCR-134) will automatically remove also the version history node from /jcr:system. BR, Jukka Zitting