Correct. Staff users cannot be deleted. To delete the user, you’d first have to remove their admin access.
u = User.find_by_username_or_email("ex@example.com")
u.admin = false
u.moderator = false
u.save
UserDestroyer.new(Discourse.system_user).destroy(u, delete_posts: false)