The delete API call will fail if the use does not have access to delete that item. You could just look at the return http code and if it is not 200 ok then don't do the local delete.
Thanks for the suggestion. However this is not what I see in my testing. It returns 204 regardless if the user has access to delete the file or not.