<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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="moz-signature">-- <br>
      <div style="font-family: Verdana, Helvetica, Arial, sans-serif;
        font-size: 8pt; font-weight: normal; color: #616365;"> <img
          src="cid:part1.C93DEA39.E539B484@unamur.be" style="display:
          block; margin: 1em 0em;">
        <p style="margin: 1em;"> <span style="font-weight: bold;">Juan
            CABRERA</span><br>
          <span style="color: #69BE28;">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: #69BE28;"
            href="mailto:juan.cabrera@unamur.be">juan.cabrera@unamur.be</a><br>
          <a style="color: #69BE28;"
            href="http://staff.unamur.be/jbcabrer">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: #69BE28;"> <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>
  </body>
</html>