manually removing assets from database
I have changed mobile apps from fdroid to play store and created duplicates. Unfortunately I'm also the admin user and cannot just purge my account. Please help me with database commands to remove these assets.
6 Replies
Does you have access to the server?
With root permissions?
Than you can search for the "storage" folder
and in the map look up for your user
with id
then run
sudo rm -r ID
@Sven The actions you described will only remove the asset on disk, not in the database
oh im sorry
np
I am writing up a short guide for @nkdf.
Remove user's related asset in database
Please take great care and double check before you run the following commands. This is a destructive operation and you will lose all of the data in the database and on disk.
Access database docker container
Connect to database
Find user id
Remove asset with user ID
Remove physical asset
* Navigate to the folder where you mounted
UPLOAD_LOCATION
in docker-compose.yml
* Find the folder with the same name as the userId
you just deleted
* Remove that folder to clear all of the physical asset you have on diskThanks for the guide. Looks straightforward enough. I'll give it a shot later and report back.
I got the user selected, but when deleting it keeps giving me a hint, perhaps you meant to reference the column "a.userID".
My bad on the capitalization. Got it figured out. As usual, your documentation is great
No problem! Cheers!