<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I would be scared to do what you are suggesting. We can't know
      what the original intention of the previous user were. This could
      create duplicate objects or reintroduce data that were meant to be
      deleted. In the end more mess then it's worth.<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 18.4.21 2:38 , Pierre Béland wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1642508261.5374008.1618771090547@mail.yahoo.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div class="ydp23cedc8yahoo-style-wrap" style="font-family:
        verdana, helvetica, sans-serif; font-size: 13px;">
        <div>
          <div dir="ltr" data-setdir="false">It is not clear if you only
            want to delete relations that never had members. We need to
            be carefull about mechanical edits if a prior contributor 
            deleted the members. <br>
          </div>
          <div dir="ltr" data-setdir="false"><br>
          </div>
          <div dir="ltr" data-setdir="false">You need a tool to look at
            the previous state of relations and try to repair it.
            History tools might help. See for example <a
              href="https://osmlab.github.io/osm-deep-history/"
              rel="nofollow" target="_blank" moz-do-not-send="true">https://osmlab.github.io/osm-deep-history/</a></div>
          <span style="font-style:italic;color:rgb(0, 0,
            191);font-weight:bold;"> </span><br>
          <span style="font-style:italic;color:rgb(0, 0,
            191);font-weight:bold;"></span>
          <div class="ydp23cedc8signature"><span
              style="font-style:italic;color:rgb(0, 0,
              191);font-weight:bold;"><font style="background-color:
                inherit;" face="garamond, new york, times, serif">Pierre
              </font><br>
            </span></div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div id="ydpfb70ae03yahoo_quoted_8793842531"
        class="ydpfb70ae03yahoo_quoted">
        <div style="font-family:'Helvetica Neue', Helvetica, Arial,
          sans-serif;font-size:13px;color:#26282a;">
          <div> Le dimanche 18 avril 2021 12 h 53 min 34 s UTC−4, Martin
            Machyna <a class="moz-txt-link-rfc2396E" href="mailto:machyna@gmail.com"><machyna@gmail.com></a> a écrit : </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div id="ydpfb70ae03yiv0560069809">
              <div dir="ltr">Hi everyone,
                <div><br>
                </div>
                <div>I had an idea that came during my work on a
                  buildings import. I would like to clear/fix improperly
                  created/deconstructed relations. This would include:</div>
                <div><br>
                </div>
                <div>1) Remove relations that have no members, nor are
                  members of a relation themselves. </div>
                <div><br>
                </div>
                <div>[out:json][timeout:250];<br>
                  relation[type](if: count_members() == 0);<br>
                </div>
                <div>rel(br) -> .parents;<br>
                  (._; - rel(r.parents););<br>
                  out ids;<br>
                </div>
                <div><br>
                </div>
                <div>2) Remove type=multipolygon from ways.</div>
                <div><br>
                </div>
                <div>[out:json][timeout:250];<br>
                  way[type=multipolygon];<br>
                  out ids;<br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
            </div>
            _______________________________________________<br>
            talk mailing list<br>
            <a href="mailto:talk@openstreetmap.org" rel="nofollow"
              target="_blank" moz-do-not-send="true">talk@openstreetmap.org</a><br>
            <a href="https://lists.openstreetmap.org/listinfo/talk"
              rel="nofollow" target="_blank" moz-do-not-send="true">https://lists.openstreetmap.org/listinfo/talk</a><br>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>