strip

Discard symbols from executables or object files. More information: https://manned.org/strip.

strip path/to/file

strip path/to/input_file -o path/to/output_file

strip --strip-debug path/to/file.o