<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_record(self, common_name):
 """Delete the record associated with this common name"""


        bundle = self.get_files(common_name)
        num_signees = len(Counter(bundle.record['signees']))
        if bundle.is_ca() and num_signees > 0:
            raise CertificateAuthorityInUseError(
                "Authority {name} has signed {x} certificates"
                .format(name=common_name, x=num_signees)
            )
        try:
            ca_name = bundle.record['parent_ca']
            ca_record = self.get_record(ca_name)
            self.remove_sign_link(ca_name, common_name)
        except CertNotFoundError:
            pass
        record_copy = dict(self.store[common_name])
        del self.store[common_name]
        self.save()
        return record_copy