protected override void ExecuteCmdlet()
        {
            var list = List.GetListOrThrow(nameof(List), CurrentWeb);
            var ct   = ContentType.GetContentTypeOrWarn(this, list);

            if (ct != null)
            {
                CurrentWeb.RemoveContentTypeFromList(list, ct);
            }
        }