How to delete sample data

Hi everyone, does anyone know how I can delete folders and sample files when a new user is created?

regards!!

rm /wwwroot/skeleton/*

1 Like

Better just set 'skeletondirectory' => '', in your config.php or set it to an own folder with individual content: https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html#user-experience (bid down the page)

Otherwise you will face integrity check errors on updates, I think.

2 Likes

Thanks, it was very helpful.