Porechop

https://github.com/rrwick/Porechop

porechop -i basecalled.fastq -o chopped.fastq

Note: no longer actively maintained. The latest version of the Guppy basecaller can trim adapters.