'Remove certificate from the course'

@staticmethod
def remove_certificate(request, store, course, certificate_id):

    for (index, cert) in enumerate(course.certificates['certificates']):
        if (int(cert['id']) == int(certificate_id)):
            certificate = course.certificates['certificates'][index]
            for (sig_index, signatory) in enumerate(certificate.get('signatories')):
                _delete_asset(course.id, signatory['signature_image_path'])
            course.certificates['certificates'].pop(index)
            store.update_item(course, request.user.id)
            break
