Destroy a window group.
#include <screen/screen.h>
int screen_destroy_group(screen_group_t grp)
The window group to be destroyed. The group must have been created with screen_create_group().
Function Type: Flushing Execution
This function destroys a window group given a screen_group_t instance. When a window group is destroyed, all windows that belonged to the group are no longer associated with the group. You must destroy each screen_group_t after it is no longer needed.
0 if the window group was destroyed, or -1 if an error occurred (errno is set; refer to /usr/include/errno.h for more details). Note that the error may also have been caused by any delayed execution function that's just been flushed.