After template is removed, template list should be updated with:
#sb_config --update_templates
For example, I want to delete 'zsk-20' template:
Appropriate record in database exists:
# mysql -uuser -ppassword sitebuilder3 -e "select * from template where code='zsk-20';"
+-----+--------+----------------------+-----------+----------------------+---------+---------------------------------+-------------------+-----------------------+----------+
| id | code | name | is_active | template_category_id | version | defaults | schemes | header_upload_support | keywords |
+-----+--------+----------------------+-----------+----------------------+---------+---------------------------------+-------------------+-----------------------+----------+
| 502 | zsk-20 | Photogallery company | 1 | 18 | 4.0.0 | logo.gif|headers1|buttons1|blue | green|blue|yellow | NULL | NULL |
+-----+--------+----------------------+-----------+----------------------+---------+---------------------------------+-------------------+-----------------------+----------+
Removing:
# rm -rf /usr/local/sitebuilder/htdocs/templates/zsk-20/
Updating database:
# sb_config --update_templates
Templates have been successfully updated
No records after update:
# mysql -uuser -ppassword sitebuilder3 -e "select * from template where code='zsk-20';"
#