Honor warn-only when purging from local directory.

Fixes issue 2162.