Retention policies for M365 groups can be created directly in the Admin Center. See the documentation on how to create and configure retention policies. However, only one policy can be rolled out to all teams in the Admin Center. Type-specific lifecycles for teams that serve different purposes can be defined using Teams Manager.