Deleting a user via discourse api

Spot on @selase! Seems like my user has more posts than User::MAX_STAFF_DELETE_POST_COUNT and also some are older than SiteSetting.delete_user_max_post_age :slight_smile:

  • delete_user_max_posts: must have been renamed to delete_user_self_max_post_count since the article posted. It is set to 1 (default)

    The maximum number of posts a user can have while allowing self-service account deletion. Set to -1 to disable self-service account deletion.

  • delete_user_max_post_age is set to 60 (default), and the user has posts over 60 days.

    Don’t allow deleting users whose first post is older than (x) days.

  • delete_all_posts_max is set to 15 (default), and my user has 12 posts

    The maximum number of posts that can be deleted at once with the Delete All Posts button. If a user has more than this many posts, the posts cannot all be deleted at once and the user can’t be deleted.

Once I eliminated the restrictions, I was able to delete the my user via the API call.

{"deleted":true}

:grin:

And perhaps API Docs could use a mention of this requirement too, maybe?