<?xml version="1.0"?>
<page id="Gimp.Palette.delete_entry"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="Gimp.Palette" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Boolean</api:type>
      </api:returns>
      <api:name>gimp_palette_delete_entry</api:name>
      <api:arg>
        <api:type>Number(gint)</api:type>
        <api:name>entry_num</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>Gimp.Palette.prototype.delete_entry</title>
  <synopsis><code mime="text/x-gjs">
function delete_entry(entry_num: Number(gint)): Boolean {
    // Gjs wrapper for gimp_palette_delete_entry()
}
  </code></synopsis>
  <p>Deletes an entry from the palette.</p>  <p>This function will fail and return <code>false</code> if the index is out or
range or if the palette is not editable.
Additionally if the palette belongs to an indexed image, it will
only be possible to delete palette colors not in use in the image.</p>
  <p>Since 2.2</p>
<terms>
<item>
<title><code>entry_num</code></title>
  <p>The index of the entry to delete.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>TRUE on success.</p>
</item>
</terms>

</page>
