deleteRun and deleteProfiles have them return a boolean if user can delete. You can simply return bool output of File.delete();
Log in to post a comment.