How to manage obsolete channels?

My team has many channels and many of them are quite old and no longer relevant/active.
How can I mark them as “inactive” so that they do not show up in the list of channels but I still can search and find them if I search by their name later?

Can I do this using a bot? I could program such that if the channel was created 1 month ago, I mark it as inactive?

Thanks @prateeksriv for the feedback.

We have an existing feature request that would allow you to “archive” channels, in addition to having an option to delete channels. https://mattermost.uservoice.com/forums/306457-general/suggestions/10960347-channel-archiving

Would you like to upvote the feature and perhaps participate in the discussion with other community members?

You get 10 votes in the feature idea forum, and each one influences the future of the project.