DesktopFile.removeGroup

Removes group by name. You can't remove "Desktop Entry" group with this function.

class DesktopFile
@safe override
bool
removeGroup
nothrow
(
string groupName
)

Examples

1 auto df = new DesktopFile();
2 df.addGenericGroup("X-Action");
3 assert(df.group("X-Action") !is null);
4 df.removeGroup("X-Action");
5 assert(df.group("X-Action") is null);
6 df.removeGroup("Desktop Entry");
7 assert(df.desktopEntry() !is null);

Meta