You can use
\r to move the "cursor" to the beginning of the line. Note that neither
\r deletes the printed characters. It just moves the "cursor" back one character and to the beginning of the line, respectively.
echo -e 'foooo\b\b\b\b\bbar'
echo -e 'foooo\rbar'
If you want the characters deleted then you have to use the following workaround:
echo -e 'fooooo\r \rbar'
If -e is in effect, the following sequences are recognized:
\0NNN the character whose ASCII code is NNN (octal)
\a alert (BEL)
\c produce no further output
\f form feed
\n new line
\r carriage return
\t horizontal tab
\v vertical tab
NOTE: your shell may have its own version of echo, which usually super‐
sedes the version described here. Please refer to your shell's docu‐
mentation for details about the options it supports.