unlink () and rmdir() errors when running adb wipe command I'm trying to wipe my device using adb shell su -c wipe all, but when I run it I get the following errors:
unlink() error on '/system/vendor/res/images/dock/dock.png' 'Read-only file system' and 
rmdir() error on '/system/vendor/res/images/dock' 'Read-only file system'
except very many of them for varying files and directories. Is there something I should do before running the wipe command?

thanks!

PS. This occurs on a Samsung Galaxy Nexus with a slightly customized 4.3 OS. I don't really have anything else to compare against, but doesn't seem like a hardware issue, therefore no samsung galaxy nexus tag.
As Izzy points out, /system is usually mounted read-only, because it contains the operating system itself. The only reason you're getting these errors is because you specifically asked the command to wipe both /system and /data: that's what the all means. If you actually did that, you'd have to reboot into recovery to reinstall the OS. If that's what you really want, you should first remount /system as read-only by running the following command in a root shell on the device:

mount -ro remount,rw /system


If you just want to wipe user data, to get an effect like a factory-reset for a clean slate for testing, then the command you need is wipe data.