Allow removing files that fail server-side validation. Closes #2319.