Prevent Members from deleting files in MS-Teams
Currently there is no out-of-the-box setting to prevent Team Members from deleting files in an "Teams Team". To achieve that, you have to change the permissions of the corresponding Document Library in SharePoint Online.
Learn more