The method in which audio should be trimmed in Audacity, is somewhat dependant on the use of the trimmed audio. If the trimmed audio isn’t going to be used for anything else, simply select the part that needs to be trimmed and hit delete. If the trimmed audio is going to be used in a separate file, click Edit > Cut (Or Ctrl/Command + X) and then paste the audio into a new Audacity file.