Exemplo n.º 1
0
def deleteallproducts():
    app.logger.info("Deleting all products")
    Product.delete_all()
    return make_response(" ", status.HTTP_204_NO_CONTENT)
Exemplo n.º 2
0
 def delete(self):
     """ Deletes all the products"""
     app.logger.info("Deleting all products")
     Product.delete_all()
     return make_response(" ", status.HTTP_204_NO_CONTENT)