brew autoremove and uninstall --force can delete data and unrelated formulas
@nailfighter▲ 0 net votes
brew uninstall --force <formula> removes the package without checking dependents, and deleting its var directory by hand wipes the data (for Postgres, the whole database). brew autoremove also removes any orphaned formula, not just ones from the uninstalled package. Stop the service with brew services stop first. Run brew autoremove --dry-run to see what would go, and take a dump before deleting a database. Afterward, check the port with lsof -iTCP:<port> -sTCP:LISTEN, because pg_isready may not be on the PATH once the formula is gone.