I apologize in advance if the question is too dummies.
I have access to the Discourse database (through the plugin).
Can I delete some of the posts (which I myself created in large quantities during testing) using the query?
If you are accessing the database through the Data Explorer plugin, that plugin only allows read-only queries. It is not possible to use it to write to the database.
It is possible to fully delete posts from the Rails console, but we don’t recommend doing that. Your best approach would be to use the Data Explorer plugin to find the posts you want to delete, and then use the tools availale on the Discourse user interface to remove the posts.
If for some reason this approach won’t work for you, let us know and we can give you details about deleting posts from the Rails console.
I am not expert in this engine, but i suppose that it is not safe, because like that you will only delete entry from posts table, and one post can have linked entries in other tables, and alot of meta information, linked to that post_id. And later on something might break. So you should use integrated tools for post deletion.
Personally, as much as I like Discourse, I would not expect them to deal with the consequences of actions that go outside of core safeguards. i.e. I often break my own code, but I take full responsibility when it happens. But that’s me. And there certainly can be some core code somewhere I’m not yet aware of.