Discourse Enables Permanent Deletion of Topics

By default, Discourse only allows soft deletion of topics. To permanently delete a topic, you first need to run the following commands on your server to enable the feature:

./launcher enter app
rails c
SiteSetting.can_permanently_delete = true

After completing this, enter exit twice to exit, then you can permanently delete the deleted topics.

Will the images in the topic be deleted at the same time?

I’m not sure, but Discourse has a feature that automatically cleans up unreferenced images on a schedule.