edit-privileged-setting and edit-room-retention-policy:edit-privileged-setting permission is requirededit-room-retention-policy permission is requirededit-room-retention-policy permission to channel owners - by default, it is assigned to Admins only.Enabled to True.Applies to options to False but set the global Enabled option to True.Retention Policy in the Admin panel, under the Global Policy section.True for private groups, and to False for all others.30; to make the policy automatically delete all messages older than a year, enter 365, etc.True, pinned messages are not deleted. For example, when you pin a few messages with important links, these messages stay intact.True, messages are not deleted, but files are. They are replaced by a simple File removed by automatic prune message. When used together with Exclude pinned messages, only unpinned files are deleted.Settings screen of a channel, if you have the edit-room-retention-policy permission.Automatically prune old messages option has three states:Automatically prune old messages to Enabled, there are a few settings you can tweak to specify the new policy:30; to make the policy automatically delete all messages older than a year, enter 365, etc.