Commands follows
511 clear 512 history 513 history -d 505 514 history 515 history -d 507 510 513 516 history 517 history -d 509 518 hist
I use this script to delete last 10 commands in history:
pos=$HISTCMD; start=$(( $pos-11 )); end=$(( $pos-1 )); for i in $(eval echo "{${start}..${end}}"); do history -d $start; done
It uses $HISTCMD environment var to get the history index and uses that to delete last 10 entries in history.
$HISTCMD
history