You could try downloading Unlocker and after it is installed simply right-click the folder or file and select Unlocker. If the folder or file is locked, a window listing of lockers will appear. Click Unlock All and then try deleting your file again. Use Shit+Delete to stop the file from going into the recycle bin.
OnePlus 5T review: Hands-on