Gtk.Editable.prototype.delete_selection

function delete_selection():void {
    // Gjs wrapper for gtk_editable_delete_selection()
}

Deletes the currently selected text of the editable. This call doesn't do anything if there is no selected text.