How can I remove all text after a character, in this case a colon (“:”), in bash? Can I remove the colon, too? I have no idea how to.

How can I remove all text after a character, in this case a colon (“:”), in bash? Can I remove the colon, too? I have no idea how to.