# How to remove primer with different length

**URL:** <https://forum.qiime2.org/t/how-to-remove-primer-with-different-length/9739>\
**Category:** User Support\
**Tags:** primers\
**Created:** [May 12, 2019, 11:30pm UTC](https://forum.qiime2.org/t/how-to-remove-primer-with-different-length/9739 "2019-05-12T23:30:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Nicholas\_Bokulich](https://forum.qiime2.org/user_avatar/forum.qiime2.org/nicholas_bokulich/32/19937_2.png) [@Nicholas\_Bokulich](https://forum.qiime2.org/u/Nicholas_Bokulich)\
**Post date:** [May 13, 2019, 2:44am UTC](https://forum.qiime2.org/t/how-to-remove-primer-with-different-length/9739/3 "2019-05-13T02:44:59Z")

</div>

> [@Lei](#):
>
> The sequencing center told me that they have already remove barcode. So what I need to remove is the primer (showing the letter after dash in the image).

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:

> [@Demultiplexing and Trimming Adapters from Reads with q2-cutadapt](https://forum.qiime2.org/t/demultiplexing-and-trimming-adapters-from-reads-with-q2-cutadapt/2313):
>
> exclamation exclamation exclamation NOTE exclamation exclamation exclamationThis tutorial is a work in progress, and is incomplete at the moment. It demonstrates at a high level some of the methods available in the [q2-cutadapt](https://docs.qiime2.org/2020.2/plugins/available/cutadapt/) plugin available in [QIIME 2 2018.2](https://docs.qiime2.org). Please stay tuned here for additional updates as this tutorial is expanded upon in the coming weeks. Multiplexed reads with the barcodes in the sequence reads can be demultiplexed in QIIME 2 using the q2-cutadapt plugin, w…

---

_[View the full topic](https://forum.qiime2.org/t/how-to-remove-primer-with-different-length/9739)._
