Pinned topic Deleting a record using API
DonaldN 06000249ET287 Posts
Re: Deleting a record using API2013-12-03T23:27:30ZThis is the accepted answer. This is the accepted answer.
Deletion is not modification so you should not follow the normal flow of record modification.
The "Validate" method should follow an "EditEntity" method, for modification. Since you already verified that "EditEntity" did not work for deletion, the "Validate" method should not be there as well (due to the entity not being in an editable state - in fact the entity no longer exists).
The "DeleteEntity" actually returns a string containing error messages should the action fail, so you should check this string directly, rather than use "Validate".