Allow removing files that fail server-side validation. Closes #2319.
Merge branch 'master' into gh-pages