private void removeKerberosArtifact(Cluster cluster) throws AmbariException {
    PredicateBuilder pb = new PredicateBuilder();
    Predicate predicate = pb.begin().property("Artifacts/cluster_name").equals(cluster.getClusterName()).and().
      property(ArtifactResourceProvider.ARTIFACT_NAME_PROPERTY).equals("kerberos_descriptor").
      end().toPredicate();

    ClusterController clusterController = ClusterControllerHelper.getClusterController();

    ResourceProvider artifactProvider = clusterController.ensureResourceProvider(Resource.Type.Artifact);

    try {
      artifactProvider.deleteResources(new RequestImpl(null, null, null, null), predicate);
      LOG.info("Kerberos descriptor removed successfully.");
      actionLog.writeStdOut("Kerberos descriptor removed successfully.");
    } catch (NoSuchResourceException e) {
      LOG.warn("The Kerberos descriptor was not found in the database while attempting to remove.");
      actionLog.writeStdOut("The Kerberos descriptor was not found in the database while attempting to remove.");
    } catch (Exception e) {
      throw new AmbariException("An unknown error occurred while trying to delete the cluster Kerberos descriptor", e);
    }
  }
Removes the Kerberos descriptor artifact from the database

@param cluster targeted for the remove process
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/CleanupServerAction.java