code: def destroy(self, request, *args, **kwargs):
          
          bulk_payload = self._get_bulk_payload(request)
          if bulk_payload:
              return self._destroy_many(bulk_payload)
          lookup_url_kwarg = self.lookup_url_kwarg or self.lookup_field
          if lookup_url_kwarg not in kwargs:
              # assume that it is a poorly formatted bulk request
              return Response(status=status.HTTP_405_METHOD_NOT_ALLOWED)
          return super(DynamicModelViewSet, self).destroy(
              request, *args, **kwargs
          )
docs: Either delete a single or many model instances in bulk
  
          DELETE /dogs/
          {
              "dogs": [
                  {"id": 1},
                  {"id": 2}
              ]
          }
  
          DELETE /dogs/
          [
              {"id": 1},
              {"id": 2}
          ]