I need to delete all objects in my table. Is possible to have a request " http://localhost:8000/api/products/delete_all/ " and when i do a get request i delete all objects. I saw this solution Delete multiple objects in django but i don't know if is possible to implement this in a moldeViewSet.
Views.py
class ProductModelViews(viewsets.ModelViewSet):
permission_classes =(permissions.IsAuthenticated,)
queryset = ProductModel.objects.all()
serializer_class = TestProductModelSerializer