Gtk.Clipboard.prototype.clear

function clear():void {
    // Gjs wrapper for gtk_clipboard_clear()
}

Clears the contents of the clipboard. Generally this should only be called between the time you call Gtk.set_with_owner or Gtk.set_with_data, and when the @clear_func you supplied is called. Otherwise, the clipboard may be owned by someone else.