Indeed! There’s the PostDestroyer class for that, which does a lot of necessary extra cleanup.
@xebiyen you can use this rake task to destroy all topics across all categories, but leave categories and users intact:
$ ./bin/rake destroy:topics_all_categories