code: def ampliconclear(self):
          
          for sample in self.metadata:
              # Set the name of the amplicon FASTA file
              sample[self.analysistype].ampliconfile = os.path.join(
                  sample[self.analysistype].outputdir, '{sn}_amplicons.fa'.format(sn=sample.name))
              try:
                  os.remove(sample[self.analysistype].ampliconfile)
              except IOError:
                  pass
docs: Clear previously created amplicon files to prepare for the appending of data to fresh files