change post method to delete method