convert delete file request from delete to post