You can use the command cut to remove specific columns from a file. The basic syntax for removing columns is:
cut -f <column numbers> -d <delimiter> <input file> > <output file>
To remove all columns except the first and third columns from a file that is semicolon-separated, you would use the following command: