Extract all data for one user:
example on this forum: https://community.nodebb.org/api/user/egut

Deleting a user:
Write API plugin
https://github.com/NodeBB/nodebb-plugin-write-api