Please make a note, before executing this command we need to detached policy of this group otherwise it will throw error. Like "An error occurred (DeleteConflict) when calling the DeleteGroup operation: Cannot delete entity, must detach all policies first."