What is files in your example above? A files field or a section. If it is a files section, then the file is just removed from the selected files. If it is a files section, the file should be deleted from the server.
If it is a files field, what is its purpose, if you are not using the selection in your template?
its a field and i thought the code above would access the info stored in this field. but it seems it accesses the directory. so yes i can see then the files field is useless.
would be ok for me, but i plan to have other users who cant upload files via ftp client and just need a simple upload and delete functionality. so do i understand correctly i would need a files section then for which i would need to code a plugin like here? Sections | Kirby CMS My first Panel section | Kirby CMS