With `cut`:
cut -d: -f1 file
With `sed`:
sed -e 's/:.*//' file
With `awk`:
awk -F: '{print $1}' file
With GNU `grep` or many BSD `grep`s (but not POSIX `grep`):
grep -o '^[^:]*' file
`cut` is the shortest one.
If you want to modify the file in-place, your `sed` may have an option `-i` that does so - but how exactly that works depends on your platform. Otherwise, `> file2 && mv file2 file` on the end of any of them will work.
Alternatively, with `ed`, in-place everywhere:
printf ',s/:.*/\
w\
' | ed file