title: How to send request body for DELETE in Django Rest Framework
body: <p>So I am trying to send a request body for DELETE in <a href="http://www.django-rest-framework.org/" rel="nofollow noreferrer">DRF</a>. I know by default,DRF doesn't support bulk operations so I am using <a href="https://github.com/miki725/django-rest-framework-bulk" rel="nofollow noreferrer">django-rest-framework-bulk</a>.</p>
  
  <p>Now as per the <a href="https://github.com/miki725/django-rest-framework-bulk#notes" rel="nofollow noreferrer">tutorial</a>, I am making sure the bulk deletes are allowed only when the query is filtered.I am using BulkModelViewset.</p>
  
  <p>Consider this json array:</p>
  
  <pre><code>[{
  
      "id": "1",
      "first_name": "bruce",
      "second_name": "banner",
      "team": "avengers"
  },
  {
      "id": "2",
      "first_name": "clark",
      "second_name": "kent",
      "team": "Justice League"
  }
  {
  
      "id": "3",
      "first_name": "dead",
      "second_name": "pool",
      "team": "x force"
  }]
  </code></pre>
  
  <p>Now the I could delete in bulk by passing a filter like :</p>
  
  <pre><code>DELETE /api_name/?first_name=bruce,clark
  </code></pre>
  
  <p>But my frontend people want to send a request body because if there are 100 objects which are needed to be deleted, they are not expected to send 100 ids as comma separated string in query parameter.</p>
  
  <p>Is there a way I could send a request body to be deleted like I do in POST,PUT,etc. Like,</p>
  
  <pre><code>[{
  
      "id": "1",
      "first_name": "bruce",
      "second_name": "banner",
      "team": "avengers"
  },
  {
      "id": "2",
      "first_name": "clark",
      "second_name": "kent",
      "team": "Justice League"
  }]
  </code></pre>
  
  <p>and the passed objects would be deleted.</p>
  
  <p>I am new to REST principles so there could be fault in my entire logic. I tried to find answers online but couldn't find something specific.Thanks</p>
  
  <p>Sample Viewset:</p>
  
  <pre><code>class TeamViewSet(BulkModelViewSet):
      serializer_class = TeamViewSerializer
      queryset = TeamView.objects.all()
      filter_backends = (DjangoFilterBackend,filters.OrderingFilter,)
      filter_class =TeamViewFilter
      ordering = ('id','second_name','first_name','team')
  
      def allow_bulk_destroy(self, qs, filtered):
          return filtered
  </code></pre>