Delete Account
DeleteAccount¶
Deletes an account from the system by its login ID.
int DeleteAccount(int login);
Parameters¶
- login — integer representing the account login ID to be deleted.
Return Value¶
RET_OK— account successfully deleted.RET_NOT_FOUND— account with the specified login does not exist.RET_*— other error codes.- Return Codes
Example¶
if (DeleteAccount(1002) == RET_OK) {
// Account deleted successfully
}
Warning
- Deleting an account is irreversible.
- Ensure that the account has no active trades or pending transactions before deletion.
- Always check the return code to confirm the account was deleted successfully.