<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="uninstall-plugin">
      </a>
      15.7.4.6 UNINSTALL PLUGIN Statement
     </h4>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045171651328">
  </a>
  <a class="indexterm" name="idm46045171650272">
  </a>
  <a class="indexterm" name="idm46045171649200">
  </a>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting one-line language-sql"><div class="docs-select-all right" id="sa5331755"><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">PLUGIN</span> <em class="replaceable">plugin_name</em></code></pre>
  </div>
  <p>
   This statement removes an installed server plugin.
   <a class="link" href="uninstall-plugin.html" title="15.7.4.6 UNINSTALL PLUGIN Statement">
    <code class="literal">
     UNINSTALL PLUGIN
    </code>
   </a>
   is the
        complement of
   <a class="link" href="install-plugin.html" title="15.7.4.4 INSTALL PLUGIN Statement">
    <code class="literal">
     INSTALL PLUGIN
    </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.plugin
   </code>
   system table because it
        removes the row from that table that registers the plugin.
  </p>
  <p>
   <em class="replaceable">
    <code>
     plugin_name
    </code>
   </em>
   must be the name of some
        plugin that is listed in the
   <code class="literal">
    mysql.plugin
   </code>
   table. The server executes the plugin's deinitialization
        function and removes the row for the plugin from the
   <code class="literal">
    mysql.plugin
   </code>
   system table, so that subsequent
        server restarts do not load and initialize the plugin.
   <a class="link" href="uninstall-plugin.html" title="15.7.4.6 UNINSTALL PLUGIN Statement">
    <code class="literal">
     UNINSTALL PLUGIN
    </code>
   </a>
   does not remove
        the plugin's shared library file.
  </p>
  <p>
   You cannot uninstall a plugin if any table that uses it is open.
  </p>
  <p>
   Plugin removal has implications for the use of associated
        tables. For example, if a full-text parser plugin is associated
        with a
   <code class="literal">
    FULLTEXT
   </code>
   index on the table,
        uninstalling the plugin makes the table unusable. Any attempt to
        access the table results in an error. The table cannot even be
        opened, so you cannot drop an index for which the plugin is
        used. This means that uninstalling a plugin is something to do
        with care unless you do not care about the table contents. If
        you are uninstalling a plugin with no intention of reinstalling
        it later and you care about the table contents, you should dump
        the table with
   <a class="link" href="mysqldump.html" title="6.5.4 mysqldump — A Database Backup Program">
    <span class="command">
     <strong>
      mysqldump
     </strong>
    </span>
   </a>
   and remove the
   <code class="literal">
    WITH PARSER
   </code>
   clause from the dumped
   <a class="link" href="create-table.html" title="15.1.20 CREATE TABLE Statement">
    <code class="literal">
     CREATE TABLE
    </code>
   </a>
   statement so that
        you can reload the table later. If you do not care about the
        table,
   <a class="link" href="drop-table.html" title="15.1.32 DROP TABLE Statement">
    <code class="literal">
     DROP TABLE
    </code>
   </a>
   can be used
        even if any plugins associated with the table are missing.
  </p>
  <p>
   For additional information about plugin loading, see
   <a class="xref" href="plugin-loading.html" title="7.6.1 Installing and Uninstalling Plugins">
    Section 7.6.1, “Installing and Uninstalling Plugins”
   </a>
   .
  </p>
 </div>
 <br/>
</div>
