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