Hello again!
It seems that I have found the sollution after all.
After looking for any "BACKUP" entry in any file on the DSM through the console ( find / -type f -exec grep -H 'BACKUP' {} \; ) I found 2 refferences to the mentioned name in the /etc/samba/smb.conf file.
[BACKUP]
invalid users=nobody,nobody
valid users=nobody,nobody
comment="Backup D1"
path=/volume3/BACKUP
guest ok=yes
browseable=yes
fileindex=no
mediaindex=no
edit synoacl=yes
win share=yes
skip smb perm=yes
enable recycle bin=no
recycle bin admin only=no
hide unreadable=no
ftp disable list=no
ftp disable modify=no
ftp disable download=no
read list=nobody,nobody
write list=nobody,nobody
writeable=yes
[BACKUP 2]
invalid users=nobody,nobody
valid users=nobody,nobody
comment="Backup disk 2"
path=/volume1/BACKUP 2
guest ok=yes
browseable=yes
fileindex=no
mediaindex=no
edit synoacl=yes
win share=yes
skip smb perm=yes
enable recycle bin=no
recycle bin admin only=no
hide unreadable=no
ftp disable list=no
ftp disable modify=no
ftp disable download=no
read list=nobody,nobody
write list=nobody,nobody
writeable=yes
I then tried creating a new shared folder, and found out that there are 2 files that store information about the current SMB shares, the "smb.conf" and "smb.share.conf". But the newly created file is only visible in the smb.share.conf file.
The other file smb.conf was probably the file used in the previous version of DSM. (In my case DSM 5.2) So it seems that DSM reads the samba configuration from both files, but only edits one of them.
After I removed the "BACKUP" and "BACKUP2" from the smb.conf file, both of these shared folders were no longer visible on any client using samba/smb protocoll.
I`m not sure if this is just a local bug on my DSM, but if not, i immagine that this will happen to a lot of people when they try to delete a shared folder that was created on a older version of the DSM.
Hope this helps someone.
@admins: Not sure how i can mark this topic as solved, so could you please do it? Thanks!