def delete_variants(self, case_id, variant_type, category=None):
category = category or '<STR_LIT>'<EOL>LOG.info("<STR_LIT>".format(<EOL>variant_type, category, case_id))<EOL>query = {'<STR_LIT>': case_id, '<STR_LIT>': variant_type}<EOL>if category:<EOL><INDENT>query['<STR_LIT>'] = category<EOL><DEDENT>result = self.variant_collection.delete_many(query)<EOL>LOG.info("<STR_LIT>".format(result.deleted_count))<EOL>
Delete variants of one type for a case

            This is used when a case is reanalyzed

            Args:
                case_id(str): The case id
                variant_type(str): 'research' or 'clinical'
                category(str): 'snv', 'sv' or 'cancer'