You can use the Legal Tools Plugin to do this.
As @HAWK points out, the ability to do this is not determinative of compliance.
The GDPR is mostly about how you run your forum, rather than the software per se. It’s not that how the software is built is irrelevant, it’s that it shouldn’t be your primary focus.
That said, I completely understand why folks are anxious about the GDPR. It’s not irrational to feel anxious about it, particularly if you’re a small outfit.
If anyone has any remaining specific concerns about the GDPR and Discourse that have not been covered already please raise them here and we can deal with them together.
Whatever it is, we can fix it. But please be specific and read up on what has already been covered first.