This question is in reference to Atlassian Documentation: Billing and user count
You can remove the users from all the groups, most importantly jira-users group. Then the user will not be able to login. In case of internal directory you will get a checkbox too to deactivate a user.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.