There is a great feature “Pretty URLs” in Settings > Build & deploy > Post processing > Asset optimization. (https://docs.netlify.com/routing/redirects/redirect-options/#trailing-slash)
It would be awesome if you could extend this feature with the option to remove the trailing slash rather than adding it.
Although trailing slashes are perfectly ok, there are a lot of sites that are using URLs that do not end in a slash (e.g. /foo/bar instead of /foo/bar/). One important reason for not changing all these URLs is that it will have a negative impact on SEO.