Skip to main content

Remove a cpanel acount via terminal

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! Can you let me know the specific account type you'd like to remove? We may have an API call available that would allow this type of work.
    0
  • SergievM
    I believe it's a user account; however, it appears to work as a default-user domain account because if has FTP access? That's why I would rather get the terminal commands to remove or change it's rights. Unfortunately, I posted a message twice about this. Sorry. I am glad you caught that. Thanks,
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. Your best bet would be to use this API call to perform that work:
    0
  • SergievM
    Thanks for the reply, I read the documentation and looked at setting up an API however, if provided a caution which regards to an API can access features... Is it safe to use it? Also, Here are some screen shots of users I would like to remove from the user manager dashboard. I was told I don't need multiple users with FTP access.
    0
  • cPRex Jurassic Moderator
    Since you are manually running the API from the command line, you don't need to worry about the access features. You're just running the command as root, with no tokens are access lists or anything that like.
    I was told I don't need multiple users with FTP access.

    Who told you that? It's very common to have multiple FTP users on a cPanel account.
    0
  • SergievM
    I've seen some user manager accounts with only one FTP accessible user. So when I saw multiple users on this account, I inquired with other domains and they don't have those accounts in the manager dashboard. So I can remove them via the terminal?
    0
  • cPRex Jurassic Moderator
    You can use that API call to remove them from the terminal, but there is no reason you are required to do so. For example, if you had an FTP user named "ftpuser" under "domain.com" you would run this command to remove that: uapi --user=domain UserManager delete_user username='ftpuser' domain='domain.com'
    0

Please sign in to leave a comment.