# Gimp.Unit.prototype.set_deletion_flag

    function set_deletion_flag(deletion_flag: Boolean): void {
        // Gjs wrapper for gimp_unit_set_deletion_flag()
    }

Sets a Gimp.Unit's deletion_flag. If the deletion_flag of a unit is true when GIMP exits, this unit will not be saved in the users's "unitrc" file.

Trying to change the deletion_flag of a built-in unit will be silently ignored.

deletion_flag

  The new deletion_flag.