how to delete command from terminal history

C++
## Delete the bash history entry at offset OFFSET ##
history -d offset
history -d number
history -d 1013
Source

Also in C++: