Since the barcodes are removed, the concerns about demultiplexing that @Mehrbod_Estaki raised are no longer a concern.
You can absolutely use QIIME 2 to accomplish your goal of removing the primers and variable spacers. Just use cutadapt once; since the variable spacer is at the 5' end of the primer, just use the primer as the "front" adapter with cutadapt trim-single
and the primers (and all preceding bases, including the variable spacer) will be removed. See the tutorial here and use the --help
flag to see the full usage details for cutadapt: