Delete .wdmc directories from WD MyCloud NAS

SSH into the device and stop content scanning services

/etc/init.d/wdmcserverd stop
/etc/init.d/wdphotodbmergerd stop

Disable automatic startup for these services

update-rc.d wdmcserverd disable
update-rc.d wdphotodbmergerd disable

Delete existing .wdmc directories

find / -type d -name ".wdmc" -printf '"%p"\n' | xargs rm -rf