How can I revert back from v6?

Did you read this before upgrading? Introducing Pi-hole v6 - Announcements - Pi-hole Userspace

For existing users, we recommend backing up your current configuration before proceeding, as the upgrade is strictly a one-way operation .