code: function(doit) {
  						if (!doit) {
  							return;
  						}
  						fileClient.freezeChangeEvents();
  						var deferredDeletes = items.map(function(item) {
  							var deleteLocation = item.Location;
  							return Deferred.when(getLogicalModelItems(item), function(logicalItems) {
  								item = logicalItems.item;
  								var _delete = fileClient.deleteFile(deleteLocation, {itemLocation: item.Location});
  								removeLastModifiedFile(item.Location);
  								return progressService.showWhile(_delete, i18nUtil.formatMessage(messages["Deleting ${0}"], deleteLocation)).then(
  									function() {
  										// Remove deleted item from copy/paste buffer
  										bufferedSelection = bufferedSelection.filter(function(element){
  											// deleted item is neither equivalent nor a parent of the array element
  											return !fileCommandUtils.isEqualToOrChildOf(element, item);
  										});
  									}, errorHandler);
  							});
  						});
  						Deferred.all(deferredDeletes).then(function() {
  							fileClient.thawChangeEvents();
  						}, errorHandler);
  					}
docs: $NON-NLS-0$