<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="uninstall-component">
      </a>
      15.7.4.5 UNINSTALL COMPONENT Statement
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045171675808">
  </a>
  <a class="indexterm" name="idm46045171674720">
  </a>
  <a class="indexterm" name="idm46045171673648">
  </a>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa59776986"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token keyword">UNINSTALL</span> <span class="token keyword">COMPONENT</span> <em class="replaceable">component_name</em> <span class="token punctuation">[</span><span class="token punctuation">,</span> <em class="replaceable">component_name</em> <span class="token punctuation">]</span> <span class="token punctuation">.</span><span class="token punctuation">.</span><span class="token punctuation">.</span></code></pre>
  </div>
  <p>
   This statement deactivates and uninstalls one or more
        components. A component provides services that are available to
        the server and other components; see
   <a class="xref" href="components.html" title="7.5 MySQL Components">
    Section 7.5, “MySQL Components”
   </a>
   .
   <a class="link" href="uninstall-component.html" title="15.7.4.5 UNINSTALL COMPONENT Statement">
    <code class="literal">
     UNINSTALL
        COMPONENT
    </code>
   </a>
   is the complement of
   <a class="link" href="install-component.html" title="15.7.4.3 INSTALL COMPONENT Statement">
    <code class="literal">
     INSTALL COMPONENT
    </code>
   </a>
   . It requires
        the
   <a class="link" href="privileges-provided.html#priv_delete">
    <code class="literal">
     DELETE
    </code>
   </a>
   privilege for the
   <code class="literal">
    mysql.component
   </code>
   system table because it
        removes the row from that table that registers the component.
   <a class="link" href="uninstall-component.html" title="15.7.4.5 UNINSTALL COMPONENT Statement">
    <code class="literal">
     UNINSTALL COMPONENT
    </code>
   </a>
   does not undo
        persisted variables, including the variables persisted using
   <code class="literal">
    INSTALL COMPONENT ... SET PERSIST
   </code>
   .
  </p>
  <p>
   Example:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa580704"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token keyword">UNINSTALL</span> <span class="token keyword">COMPONENT</span> <span class="token string">'file://component1'</span><span class="token punctuation">,</span> <span class="token string">'file://component2'</span><span class="token punctuation">;</span></code></pre>
  </div>
  <p>
   For information about component naming, see
   <a class="xref" href="install-component.html" title="15.7.4.3 INSTALL COMPONENT Statement">
    Section 15.7.4.3, “INSTALL COMPONENT Statement”
   </a>
   .
  </p>
  <p>
   If any error occurs, the statement fails and has no effect. For
        example, this happens if a component name is erroneous, a named
        component is not installed, or cannot be uninstalled because
        other installed components depend on it.
  </p>
  <p>
   A loader service handles component unloading, which includes
        removing uninstalled components from the
   <code class="literal">
    mysql.component
   </code>
   system table that serves as a
        registry. As a result, unloaded components are not loaded during
        the startup sequence for subsequent server restarts.
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    This statement has no effect for keyring components, which are
          loaded using a manifest file and cannot be uninstalled. See
    <a class="xref" href="keyring-component-installation.html" title="8.4.4.2 Keyring Component Installation">
     Section 8.4.4.2, “Keyring Component Installation”
    </a>
    .
   </p>
  </div>
 </div>
 <br/>
</div>
