Delete api nearly finished