<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Juan,<div><br></div><div>We have removed the ability to remove a single content unit (for now) because it could potentially interfere with other tasks like sync. We may try to bring it back after 3.0. For now, you should use orphan cleanup:</div><div><br></div><div>http DELETE <a href="http://localhost:24817/pulp/api/v3/orphans/">http://localhost:24817/pulp/api/v3/orphans/</a><br></div><div><br></div><div>There's no docs on this though which is why it isn't obvious so I filed an issue to add documentation[1].</div><div><br></div><div>[0] <a href="https://pulp.plan.io/issues/3445">https://pulp.plan.io/issues/3445</a></div><div>[1] <a href="https://pulp.plan.io/issues/4831">https://pulp.plan.io/issues/4831</a><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>David<br></div></div></div></div></div></div></div></div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 16, 2019 at 9:35 AM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be">juan.cabrera@unamur.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>Hi pulp people,</p>
    <p>I'm learning how to create and add rpm package in a own local
      repo with pulp3.</p>
    <p>Doing my test, I realize that I can not delete a content and
      therefore I can not delete the corresponding artifact.</p>
    <p>I do not know if this is what is expected.</p>
    <p>I have those rpm packages<br>
    </p>
    <p>[vagrant@dev-pulp-master ~]$ http
      $PORT/pulp/api/v3/content/rpm/packages/ | jq -r '.results[] |
      .location_href,._href,._artifact'<br>
      apr-1.4.8-3.el7_4.1.x86_64.rpm<br>
/pulp/api/v3/content/rpm/packages/fb79efc3-c9c1-4567-9fba-a06465124a9a/<br>
      /pulp/api/v3/artifacts/08f6465b-8f4f-4ce8-9a24-a1c2ed873fa8/<br>
      apr-util-1.5.2-6.el7.x86_64.rpm<br>
/pulp/api/v3/content/rpm/packages/81b92d30-44a2-4c25-8e9c-be2c5681f2a4/<br>
      /pulp/api/v3/artifacts/733e8371-2448-4a4b-849c-fb842dcd933b/<br>
      centos-logos-70.0.6-3.el7.centos.noarch.rpm<br>
/pulp/api/v3/content/rpm/packages/e1ea2982-207f-4ed1-addb-02bafd5b702a/<br>
      /pulp/api/v3/artifacts/48245c81-6ce2-411e-a3a7-485df9c5ed43/<br>
      httpd-2.4.6-89.el7.centos.x86_64.rpm<br>
/pulp/api/v3/content/rpm/packages/fbd746b3-1f0f-49e2-8031-9350bb757c1b/<br>
      /pulp/api/v3/artifacts/e61468d5-0a61-4d18-8769-b36a82ea635b/<br>
      httpd-tools-2.4.6-89.el7.centos.x86_64.rpm<br>
/pulp/api/v3/content/rpm/packages/15e680a8-e551-40e2-a016-df21f6eba022/<br>
      /pulp/api/v3/artifacts/2332b7d5-c74b-4167-954a-47f9641e53a3/<br>
      mailcap-2.1.41-2.el7.noarch.rpm<br>
/pulp/api/v3/content/rpm/packages/4ade7580-2bbb-456c-ae06-c13a654e9205/<br>
      /pulp/api/v3/artifacts/80a46015-845f-49b1-a213-7a90000de5cb/<br>
      <br>
    </p>
    <p>If I want to remove one of them:</p>
    <p>[vagrant@dev-pulp-master ~]$ http DELETE
$PORT/pulp/api/v3/content/rpm/packages/fb79efc3-c9c1-4567-9fba-a06465124a9a/<br>
      HTTP/1.1 405 Method Not Allowed<br>
      Allow: GET, HEAD, OPTIONS<br>
      Connection: close<br>
      Content-Length: 43<br>
      Content-Type: application/json<br>
      Date: Thu, 16 May 2019 13:30:25 GMT<br>
      Server: gunicorn/19.9.0<br>
      Vary: Accept, Cookie<br>
      X-Frame-Options: SAMEORIGIN<br>
      <br>
      {<br>
          "detail": "Method \"DELETE\" not allowed."<br>
      }<br>
      <br>
      And for the corresponding artifact I get:</p>
    <p>[vagrant@dev-pulp-master ~]$ http DELETE
      $PORT/pulp/api/v3/artifacts/08f6465b-8f4f-4ce8-9a24-a1c2ed873fa8/<br>
      HTTP/1.1 409 Conflict<br>
      Allow: GET, DELETE, HEAD, OPTIONS<br>
      Connection: close<br>
      Content-Length: 82<br>
      Content-Type: application/json<br>
      Date: Thu, 16 May 2019 13:31:13 GMT<br>
      Server: gunicorn/19.9.0<br>
      Vary: Accept, Cookie<br>
      X-Frame-Options: SAMEORIGIN<br>
      <br>
      {<br>
          "detail": "The Artifact cannot be deleted because it is
      associated with Content."<br>
      }<br>
    </p>
    <p>It could be interesting to have the possibility to remove a wrong
      content isn't it ?<br>
    </p>
    <p>Sincerely</p>
    <p>Juan Cabrera<br>
    </p>
    <div class="gmail-m_7084508529764132285moz-signature">-- <br>
      <div style="font-family:Verdana,Helvetica,Arial,sans-serif;font-size:8pt;font-weight:normal;color:rgb(97,99,101)"> <img src="cid:16ac0f2d2fbc6dda0db1" style="display: block; margin: 1em 0em;">
        <p style="margin:1em"> <span style="font-weight:bold">Juan
            CABRERA</span><br>
          <span style="color:rgb(105,190,40)">Correspondant informatique</span><br>
          <span>Département de Mathématiques</span> </p>
        <p style="margin:1em">
          <span style="font-weight:bold">T.</span> 081724919<br>
          <a style="color:rgb(105,190,40)" href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a><br>
          <a style="color:rgb(105,190,40)" href="http://staff.unamur.be/jbcabrer" target="_blank">http://staff.unamur.be/jbcabrer</a>
        </p>
        <p style="margin:1em"> <span style="font-weight:bold;font-size:8pt">Université de Namur ASBL</span><br>
          <span>Rue de Bruxelles 61 - 5000 Namur</span><br>
          <span>Belgique</span><br>
        </p>
        <p style="margin:1em;font-size:6pt;color:rgb(105,190,40)"> <span>Let’s
            respect the environment together.</span><br>
          <span style="font-weight:bold">Only print this message if
            necessary!</span><br>
        </p>
      </div>
    </div>
  </div>

_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>