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 ![]()
-
delete_user_max_posts: must have been renamed todelete_user_self_max_post_countsince the article posted. It is set to1(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_ageis set to60(default), and the user has posts over60days.Don’t allow deleting users whose first post is older than (x) days.
-
delete_all_posts_maxis set to15(default), and my user has12postsThe 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}
![]()
And perhaps API Docs could use a mention of this requirement too, maybe?