@Override
@DELETE
public void delete(Context context, Request request, Response response)
throws ResourceException
{
ExpireCacheTask task = getNexusScheduler().createTaskInstance(ExpireCacheTask.class);
String repositoryId = getRepositoryId(request);
if (repositoryId == null) {
repositoryId = getRepositoryGroupId(request);
}
task.setRepositoryId(repositoryId);
task.setResourceStorePath(getResourceStorePath(request));
handleDelete(task, request);
}