Delete rest api optimised