There currently isn't an option to delete a theme right now. That feature/enhancement request in currently in the backlog and coming soon. In the meantime, you could delete your theme depending on your configured storage option:
- delete the theme directly from the directory specified if
PORTAL_STORAGE=fs
- delete the theme from the db with the help SQL query if
PORTAL_STORAGE=db
- delete the theme from the s3 storage if
PORTAL_STORAGE=s3
Database query for deleting a theme manually
The assets are stored in the assets
table within the DB. So to delete the theme, the following query can be run
DELETE FROM assets
WHERE path LIKE '/opt/portal/themes/<theme_name>%';
This query deletes all rows where the path column starts with /opt/portal/themes/<theme_name>
. The %
wildcard allows for any characters to follow the specified path, ensuring that both the exact path and any sub-paths are included. Be cautious when executing this query, as it will permanently remove the matching rows from the table.
Please note that a portal restart may be required for the outcome/result of the deletion to reflect.
Comments
0 comments
Please sign in to leave a comment.