Added subquery to the updating of File directory IDs to stop other files
directory IDs outside the scope of the current device from being wiped.