How about:

    var sel = _filesController.getSelection();
    if (var.isNotEmpty) {
      workspace.deleteResource(var.first);
    }