Delete folders in the Image / File Manager
added in v3
Nicolas Giard
marked this post as
added in v3
Jay Jay
The best way I've found for myself is DBGate, as already mentioned below.
docker.compose.yml:
Services:
dB:
Image: postgres:15-alpine
container_name: wiki-database
environment:
POSTGRES_DB: wiki
POSTGRES_PASSWORD: wikijspass
POSTGRES_USER: wikijs
Logging:
driver: none
Restart: unless-stopped
Volumes:
-. /db-data:/var/lib/postgresql/data
Networks:
- net
dbgate:
Image: dbgate/dbgate
Restart: Always
ports:
- 81:3000
Volumes:
-. /dbgate-data:/root/.dbgate
environment:
CONNECTIONS: con1
Label_con1: Postgres
Server_con1: db
User_con1: wikijs
Password_con1: wikijspass
Port_con1:5432
Engine_con1: postgres @dbgate -plugin-postgres
Networks:
- net
wiki:
Image: ghcr.io/requarks/wiki:2.5
container_name: wiki-webui
depends_on:
- dB
environment:
DB_TYPE: postgres
DB_HOST: db
DB_PORT: 5432
DB_USER: wikijs
DB_PASS: wikijspass
DB_NAME: wiki
Volumes:
-. /localfiles:/mnt/localfiles
Networks:
- net
Restart: unless-stopped
ports:
- “80:3000”
Networks:
Net:
Driver: bridge
---------------------------------
Open the web gui
Select database
AssetFolders table
Change name and slug
Accept with Save (below)
The command that should be executed is displayed.
confirm with ok.
Done
I've already deleted a folder.
Nicolas Giard
Merged in a post:
Asset Folder Deletion
1
It would be great if we could delete or manage the asset folder. Right now, it's not possible, and it would help with file organization.
Thanks for considering it!
Nicolas Giard
Merged in a post:
Delete folder
Maria Apostolou
I can't delete a folder from UI which contains pictures
Running version 2.5.305
Nicolas Giard
marked this post as
added in v3
Loknath Dhar
I'm still determining if this is a solution, but I misspelled too. For example, I misspelled "datafirm" and wanted to make it "datafarm".
I renamed the path where the word "datafirm" exist.
I had 3 pages under the folder. After manually changing it everywhere, I saw that the 'datafirm' folder was gone. Temporary solution, I guess.
Guns
3 years later, still not a thing.
Noah
If anybody is interested, how to manage folders by accessing the db here's my .md file where I documented this.
Serhii Moruk
Manage wiki js
## Use Putty to connect to server over SSH
## connect to docker container bash shell (just for info)
docker exec -it wikijs /bin/bash
## or the database container (use this one)
docker exec -it wiki-docker-db-1 /bin/bash
### connect to the postgressql db
psql -U wikijs -d wiki
#### make sure on correct db
\c wiki
show all tables
\dt
show shema
\dn
show all folders
SELECT * FROM public."assetFolders";
delete one folder
DELETE FROM public."assetFolders" WHERE id = 1;
delete folders
DELETE FROM public."assetFolders" WHERE id IN (1,3,5,6);
Qds Soft
Noah: Thank you for this workaraound. I installed dbgate for graphical database management, so I can administer it more easily.
KaizenHayashi
Noah: I don't understand this, I'm very new to wiki.js, apologies. Is there a more detailed step-by-step guide on how to manage folders?
Noah
KaizenHayashi: No not really. That‘s very detailed.
How did you install wikijs?
You gotta do this over the command line. There is no gui for this (yet). But like Qds Soft said, you could use some gui for the database.
KaizenHayashi
Noah: I installed wiki.js via this site (https://docs.requarks.io/install/docker-desktop). By command line do you mean Windows Powershell by any chance?
And I might have to check out dbgate before I ask any questions, but I really don't want to have too many external applications/software involved if possible.
I also have Docker on my device.
John G.
bumping this thread. This is really needed!
Nicolas Giard
Merged in a post:
Manage Folders
M
Mark Leigh
When will the functionality for deleting folders be made available?
Damián Berruezo
Indeed. I don't know it one can delete those manually from the file system but then again not every Wiki.js implementation will allow access to the file system. +1
Load More
→