But this is not all, you then need to make sure you delete the file from the local storage, which is tricky since the OS may not fully delete the data but just update the file tables to remove the file entry and not its actual content.