<delete>

This tag defines the delete method of a bet. It is a child of the tag <bet> and it is optional. Maximum one <delete> tag can be present in a tag <bet>. When the delete condition is verified the undeleted bet (or the part remaining undeleted) is cancelled.

Attributes:
condition (string)Sql assertion. When it is true the bet is cancelled.
close_trade_ondelete (y|n)Specify if the trade must be closed when the current bet is deleted. Useful to free slots in strategies that manage multiple trades on same race or same horse.
remove_check_ondelete (y|n)Specify if the check manually applied to the horse must be removed after the bet is deleted. Useful, for example, in manual strategies that work in in-play races: removing the check it allows the operator to launch a second trade on the same horse.
clear_custom_1_ondelete (y|n)Specify if the custom values 1, manually inserted for the horse, must be wiped out after the bet is fully deleted.
clear_custom_2_ondelete (y|n)Specify if the custom values 2, manually inserted for the horse, must be wiped out after the bet is fully deleted.
clear_custom_3_ondelete (y|n)Specify if the custom values 3, manually inserted for the horse, must be wiped out after the bet is fully deleted.