From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wLuoEscolV7kGgAA0tVLHw (envelope-from ) for ; Tue, 14 Apr 2020 03:06:47 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uMc/E8oolV45HQAAbx9fmQ (envelope-from ) for ; Tue, 14 Apr 2020 03:06:50 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 00244941AD6 for ; Tue, 14 Apr 2020 03:06:47 +0000 (UTC) Received: from localhost ([::1]:51924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOBuO-0005Rd-Ib for larch@yhetil.org; Mon, 13 Apr 2020 23:06:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50210) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jOBu0-0005RS-E5 for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 23:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jOBty-0004uX-K6 for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 23:06:20 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:39484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jOBty-0004rC-CD for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 23:06:18 -0400 Received: by mail-pl1-x634.google.com with SMTP id k18so4145632pll.6 for ; Mon, 13 Apr 2020 20:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=XLqlqtL37z+xRdboU6//IsdS6jW3dJy63CsFjydbUWo=; b=K1XTRHn8ES7D9aWAm2EKENQsa+GGEE3Q92M/3ub6SwNR/IuCzna6Hkex9HVU1ObcoD h9O19I/CVgZnOm6AAxRNbaBIzfOz6N8wMQV9DZXJHkLkvnkUaizxW8h/vLLqt+k1s/3P bEvANwxbS9y3OJDB0vQUjmBGqjDWfzDsqaC7D1FNMhehab9f9cM3oMFhTyq2S4FW9Uqm h8WmUkSJnXmUQAEedPacCXjsgOYLWdeBpxcz7mC+/5XzkBmqlvYp4qw5a/CO8EQ3qgoM MGEG1ifeHKNYEeewca9wbISckgBhCYM5eI0xYLv37odxylQ6ZGxVchM7hRdCpABt/d2t kAhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=XLqlqtL37z+xRdboU6//IsdS6jW3dJy63CsFjydbUWo=; b=HRoW4Z+WHBYtdZ+PEjkU7s8dexyErzPy+CXNoU0M/We1Ft4pVWLDQh3sFIIQKKCYxa D06CXtzE/pKlrusmWTh1Ibh1P4i0GGn0UFKX6d7PoXMwqQBIa7aOBHyuQTG474rmcFa4 SzXqJit07DLV2W4m/Sy6q6Rm/nZwdUmpX/6Bl/e8BAdVDyRwl5UpcQyJFqaWZwW74Jgd yoPfw3JhwTmdMWgyMzXdXAmPkg0ksAwdwXm59A8Q75nq2Sl24W3lIf/1waydh/gWeS42 yyfKX2DNP9Y0QTq8rNT74nME2JyE0NrxabJAGmmMHq/GRS4gm/nOrkiKbfVyzq7auRfy IPPA== X-Gm-Message-State: AGi0PuabxHAz4UNAXfUiNkFXWMnm6RS8arzui9elK/33CHMfeC5/8kfA wQhsTKN72hiokZdus/sKpBnTYtpvBL162A== X-Google-Smtp-Source: APiQypJ2Zy6QZj3Y0YhLF3swObVJM/DokU+eiWfpNYltfjxNy1UjDcPVCsTYrwBREruxHAbE5l9bvQ== X-Received: by 2002:a17:90a:d154:: with SMTP id t20mr25088866pjw.133.1586833576990; Mon, 13 Apr 2020 20:06:16 -0700 (PDT) Received: from localhost ([210.3.160.226]) by smtp.gmail.com with ESMTPSA id w9sm98544pgg.7.2020.04.13.20.06.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 20:06:16 -0700 (PDT) From: Ihor Radchenko To: Marc-Oliver Ihm , emacs-orgmode@gnu.org Subject: Re: Assistant to remove unused IDs of org-id In-Reply-To: <1244245671.1302763.1586796345440@www.ud-mail.de> References: <1244245671.1302763.1586796345440@www.ud-mail.de> Date: Tue, 14 Apr 2020 11:02:31 +0800 Message-ID: <87y2qyu5vc.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::634 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=K1XTRHn8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.21 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.57646442820015]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.28), country: US(-0.01), ip: 209.51.188.17(-0.58)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[yantar92@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: K2ms1xxCZUFs I quickly looked through the code. It seems that you do not consider attachments, which are normally stored in a folder named after the entry's ID property. Deleting those ID is terrible idea. Best, Ihor Marc-Oliver Ihm writes: > Hi, > > as I use the excellent package org-id in a somewhat non-standard way, I tend to produce IDs, that are not referenced from anywhere. Org-id handles this great and does not suffer in performance, but eventually I want to remove those unreferenced IDs. > Therefore I have written a small interactive assistant: > > https://github.com/marcIhm/org-working-set/blob/master/org-id-cleanup.el > > to help with removing those IDs. > The assistant (interactive function: org-id-cleanup) is quite detailed with its instructions and checks, so that the risk of doing harm ist reduced to a minimum, although not to zero (therefore the first step is to ask for a backup). > > In any case I wonder, if this functionality (removing unreferenced IDs) could be helpful for anyone else. > > So please feel free to have a look. > Finally I would be grateful for any comment whatsoever > (e.g. regarding the name of org-id-cleanup.el). > > Best regards > Marc > -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg