When deleting themes via API [1] on a fresh 2.8.2 install, I get an fatal error:
```
Fatal error: Uncaught Error: Call to undefined function deltree() in .../piwigo/admin/include/themes.class.php:246
Stack trace:
#0 .../piwigo/include/ws_functions/pwg.extensions.php(118): themes->perform_action('delete', 'clear')
#1 .../piwigo/include/ws_core.inc.php(608): ws_themes_performAction(Array, Object(PwgServer))
#2 .../piwigo/include/ws_protocols/rest_handler.php(56): PwgServer->invoke('pwg.themes.perf...', Array)
#3 .../piwigo/include/ws_core.inc.php(296): PwgRestRequestHandler->handleRequest(Object(PwgServer))
#4 .../piwigo/ws.php(94): PwgServer->run()
#5 {main}
thrown in .../piwigo/admin/include/themes.class.php on line 246
```
Deleting the theme via Admin UI works.
1): `http://PIWIGO/ws.php?format=json&method=pwg.themes.performAction&action=delete&theme=Sylvia&pwg_token=TOKEN`
<!-- github-sync-id:169123520 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
When deleting themes via API [1] on a fresh 2.8.2 install, I get an fatal error:
Deleting the theme via Admin UI works.
1):
http://PIWIGO/ws.php?format=json&method=pwg.themes.performAction&action=delete&theme=Sylvia&pwg_token=TOKEN