def METHOD_NAME(self, identifier, type_name, **kwargs):
    """ Handle the deregistration a browse image
    """
    try:
        models.Mask.objects.get(
            product__identifier=identifier,
            mask_type__name=type_name
        ).delete()
    except models.Mask.DoesNotExist:
        raise CommandError('No such Mask for product %r' % identifier)
    print(
        'Successfully deregistered mask %r for product %r'
        % (type_name, identifier)
    )