tabs.ungroup()

Removes one or more tabs from their respective tab groups. A split view is removed from the group if either of its tabs is specified. If any groups become empty, they are deleted.

All tabs in a tab group must be adjacent. If necessary, an ungrouped tab is moved before or after the tab group to maintain this requirement.

Note: The tabs.ungroup() method is not the only way to ungroup tabs. A tab is also ungrouped when it's moved by calling tabs.move with an index that is outside a tab group.

For more information on tab groups, see tabGroups.

Syntax

js
let ungrouping = browser.tabs.ungroup(
  tabIds              // array
)

Parameters

tabIds

integer or array of integer. The tab ID or list of tab IDs to remove from groups.

Return value

A Promise that is resolved with no arguments.

If any of the tabIds are invalid, the promise is rejected without modifying the tabs.

Examples

Remove the current tab from its tab group, if any:

js
let tabs = await browser.tabs.query({
  active: true,
  lastFocusedWindow: true,
});

await browser.tabs.ungroup([tabs[0].id]);
console.log("Current tab is ungrouped");

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
ungroup
Chrome – Full support
Chrome 88 (Release date: 2021-01-19)
footnote Full support
Edge – Full support
Edge 88 (Release date: 2021-01-21)
footnote Full support
Firefox – Full support
Firefox 138 (Release date: 2025-04-29)
footnote Full support
Opera – Full support
Opera 74 (Release date: 2021-02-02)
footnote Full support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote No support
Safari on iOS – No support
Safari on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support