Fixed delete document API return code