<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>2.4. Quickly Deleting Part of the Configuration</title><link rel="stylesheet" href="./Common_Content/css/default.css" type="text/css" /><meta name="generator" content="publican 1.6" /><meta name="package" content="Pacemaker-Pacemaker_Explained-1.1-en-US-1-0" /><link rel="home" href="index.html" title="Configuration Explained" /><link rel="up" href="ch-basics.html" title="Chapter 2. Configuration Basics" /><link rel="prev" href="s-config-updates.html" title="2.3. How Should the Configuration be Updated?" /><link rel="next" href="s-config-tools.html" title="2.5. Updating the Configuration Without Using XML" /></head><body class=""><p id="title"><a class="left" href="https://fedorahosted.org/publican"><img src="Common_Content/images/image_left.png" alt="Product Site" /></a><a class="right" href="https://fedorahosted.org/publican"><img src="Common_Content/images/image_right.png" alt="Documentation Site" /></a></p><ul class="docnav"><li class="previous"><a accesskey="p" href="s-config-updates.html"><strong>Prev</strong></a></li><li class="next"><a accesskey="n" href="s-config-tools.html"><strong>Next</strong></a></li></ul><div class="section" title="2.4. Quickly Deleting Part of the Configuration"><div class="titlepage"><div><div><h2 class="title" id="s-config-delete">2.4. Quickly Deleting Part of the Configuration</h2></div></div></div><div class="para"> Identify the object you wish to delete. eg. </div><div class="figure" id="fig-config-search"><div class="figure-contents"><pre class="screen"> <code class="command"># cibadmin -Q | grep stonith</code> <nvpair id="cib-bootstrap-options-stonith-action" name="stonith-action" value="reboot"/> <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="1"/> <primitive id="child_DoFencing" class="stonith" type="external/vmware"> <lrm_resource id="child_DoFencing:0" type="external/vmware" class="stonith"> <lrm_resource id="child_DoFencing:0" type="external/vmware" class="stonith"> <lrm_resource id="child_DoFencing:1" type="external/vmware" class="stonith"> <lrm_resource id="child_DoFencing:0" type="external/vmware" class="stonith"> <lrm_resource id="child_DoFencing:2" type="external/vmware" class="stonith"> <lrm_resource id="child_DoFencing:0" type="external/vmware" class="stonith"> <lrm_resource id="child_DoFencing:3" type="external/vmware" class="stonith"> </pre></div><h6>Figure 2.5. Searching for STONITH related configuration items</h6></div><br class="figure-break" /><div class="para"> Next identify the resource's tag name and id (in this case we'll chose <code class="literal">primitive</code> and <code class="literal">child_DoFencing</code>). Then simply execute: </div><div class="para"> <code class="command">cibadmin --delete --crm_xml ‘<primitive id="child_DoFencing"/>'</code> </div></div><ul class="docnav"><li class="previous"><a accesskey="p" href="s-config-updates.html"><strong>Prev</strong>2.3. How Should the Configuration be Updated?</a></li><li class="up"><a accesskey="u" href="#"><strong>Up</strong></a></li><li class="home"><a accesskey="h" href="index.html"><strong>Home</strong></a></li><li class="next"><a accesskey="n" href="s-config-tools.html"><strong>Next</strong>2.5. Updating the Configuration Without Using XML</a></li></ul></body></html>