That’s not going to work. Even for API requests. After a certain point users can’t delete their own posts.
Usually the best option is to anonymize all posts by a user if they no longer want to be apart of the forum. This will simply change their username to something random so that their posts are no longer associated with them.