• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

Delete User in Bulk using CLI?

Version
4.5.9
PHP version
8.2.35
Database driver
MySQL
Database version
8.0
Web browser
Brave, Firefox, Chrome

dhiananda

Chevereto Member
Question: How to delete users using CLI ?

I am using GUI/Dashboard for the moment, but I have to click the users one by one, even after delete one users, the app isn't properly "back" in the users list, rather than previous uri, which is the users' profile link and now not valid anymore due deleted. Its kinda of frustrating delete one by one using Dashbaord. Using mysql isn't suggested said it won't delete the users' image and album if exist. Any solution for this?

Reason: my web were flooded and abuse with random users registered.
 
Hello,

The CLI doesn't have a command for deleting users with it. I'm afraid you will need to use the web UI for this.
 
That will be exhausting delete hundreds of them... Is it safe to delete in MySQL directly?

Another questions, the images of all files seems unable to display properly or broken while the real file still exist. I am not sure if this have any relation which the last action of upgrade from v3 to v4 or not. Any suggestion to investigate this matter?
 
That will be exhausting delete hundreds of them... Is it safe to delete in MySQL directly?
You could get the stuff delisted, but you will need to rebuild the associated counters. Also, it won't touch the actual files which may keep being served.

The images of all files seems unable to display properly or broken while the real file still exist. I am not sure if this have any relation which the last action of upgrade from v3 to v4 or not.
The display URL is generated based on the associated storage, that's the URL chevereto displays. How that URL resolves depends on where that content is stored, and properly mapped.
 
I hope you could consider the users management in the next release for ease an admin to manage users especially delete abuser. Either with UI or CLI.


I don't change anything in the v3 so I don't understand what changed between the upgrade to v4. Any advice where to look into? Because its happened random not all so some members get their images partially okay and other images broken.
 
I have to edit the env file to include my table prefix which not default for sure, then the app recognize the whole files completely. The documentation not mention about this when upgrade. Lesson learned.

Now my other problem is about the email setup.
My other PHP application is using the same config, as SMTP localhost port 25.
Because I set mine using Postfix which configured to use relay to my other mail server.
However when I test in Chevereto, the notice about can't connect to localhost 25 is appeared.
Using PHP throwing some errors about sendmail which I am not install it because I use Postfix.

Any advice why Chevereto can't use localhost?
 

Chevereto Cloud

Back
Top