final PostResponse response, final List<Modification> changes)
throws RepositoryException {
// SLING-3203: selectors, extension and suffix make no sense here and
// might lead to deleting other resources than the one the user means.
final RequestPathInfo rpi = request.getRequestPathInfo();
if( (rpi.getSelectors() != null && rpi.getSelectors().length > 0)
|| (rpi.getExtension() != null && rpi.getExtension().length() > 0)
|| (rpi.getSuffix() != null && rpi.getSuffix().length() > 0)) {
response.setStatus(
HttpServletResponse.SC_FORBIDDEN,
"DeleteOperation request cannot include any selectors, extension or suffix");
return;
}