title: How to delete a fk record in Django Rest Framework
body: <p>My goal is to delete the fk record related with the record of the given id in the endpoint.</p>
  <p>my url</p>
  <pre><code>path('car-pricing/&lt;uuid:car_id&gt;/', car_pricing),
  </code></pre>
  <p>my model</p>
  <pre><code>class Pricing(models.Model):
      id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
      car = models.ForeignKey(Car, related_name=&quot;pricings&quot;, on_delete=models.CASCADE)
  </code></pre>
  <p>In other words I want to delete a specific <code>Pricing</code> record given the id of a <code>Car</code> in my endpoint.</p>
  <p>By requesting with an id of a <code>Car</code> record I can get more than one <code>Pricing</code> records.</p>
  <p><strong>Is it somehow possible to choose to delete a specific <code>Pricing</code> based on the id?</strong></p>
  <p>my view(here, I do not know how to deal with delete function)</p>
  <pre><code>elif request.method == 'DELETE':
          pricing_data = request.data
  
          return Response(status=status.HTTP_204_NO_CONTENT)
  </code></pre>
  <p>Here the requested data is an empty QueryDict and it is ok, since there is no way to give requested data to a delete action in django rest framework</p>