Remove deprecated code
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_6996). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
Remove deprecated code, as part of the 3.0 release.

First merge:
- [ ] #6983
- [x] #6987
- [ ] #6999