Gimp.Palette.prototype.delete_entry

function delete_entry(entry_num: Number(gint)): Boolean {
    // Gjs wrapper for gimp_palette_delete_entry()
}
  

Deletes an entry from the palette.

Deletes an entry from the palette. Returns an error if the index is out or range. Returns an error if the palette is not editable.

Since 2.2

entry_num

The index of the entry to delete.

Returns

TRUE on success.