Delete a plugin path

@param model
@param id
@return
779593
@RequestMapping(value = "/api/plugins/{id}", method = RequestMethod.DELETE)
    public
    @ResponseBody
    HashMap<String, Object> deletePluginPath(Model model, @PathVariable Integer id) {
        try {
            PluginManager.getInstance().deletePluginPath(id);
        } catch (Exception e) {
        }

        return pluginInformation();
    }
1204609
def stop(self, id):
        
        path = partial(_path, self.adapter)
        path = path(id)
        return self._delete(path)
584890
public function deletePlugin($id)
    {
        /*
         * Rollback plugin
         */
        UpdateManager::instance()->rollbackPlugin($id);

        /*
         * Delete from file system
         */
        if ($pluginPath = self::instance()->getPluginPath($id)) {
            File::deleteDirectory($pluginPath);
        }
    }
610889
public Response deleteTemplate(String id)
            throws RequestException, LocalOperationException {
        Request request = new Request(this);
        return new Response(request.delete("/templates/" + id, new HashMap<String, Object>()));
    }
528798
public synchronized void remove(int id) {
        if (tc.isEntryEnabled())
            SibTr.entry(tc, "remove", "" + id);
        if (tc.isEntryEnabled())
            SibTr.exit(tc, "remove", "" + id);
        map.remove(id);
    }
256697
public static base_response delete(nitro_service client, String id) throws Exception {
		linkset deleteresource = new linkset();
		deleteresource.id = id;
		return deleteresource.delete_resource(client);
	}
1188835
@DeleteMapping(path = "/instances/{id}")
    public Mono<ResponseEntity<Void>> unregister(@PathVariable String id) {
        LOGGER.debug("Unregister instance with ID '{}'", id);
        return registry.deregister(InstanceId.of(id))
                       .map(v -> ResponseEntity.noContent().<Void>build())
                       .defaultIfEmpty(ResponseEntity.notFound().build());
    }
93323
def delete(self, id):
        
        map = self._delete_map_from_user_by_id(c.user, id)
        if map is None:
            abort(404)
        if os.path.exists(os.path.join(config['mapfiles_dir'], map.filepath)):
            os.unlink(os.path.join(config['mapfiles_dir'], map.filepath))

        response.status = 204
        # remove content-type from response headers so that webtest won't get confused
        # http://groups.google.com/group/pylons-discuss/browse_thread/thread/1267650386ae521b
        del response.headers['content-type'] 
        return
408008
@RequestMapping(value = "api/edit/server/{id}", method = RequestMethod.DELETE)
    public
    @ResponseBody
    List<ServerRedirect> deleteRedirectUrl(Model model, @PathVariable int id) throws Exception {
        // get the profile id from this redirect so we can return the remaining
        // data
        ServerRedirect redir = ServerRedirectService.getInstance().getRedirect(id);
        int profileId = redir.getProfileId();
        ServerRedirectService.getInstance().deleteRedirect(id);
        return ServerRedirectService.getInstance().tableServers(profileId);
    }
1210255
function(id){
        if(id){
            var plugins = this.doc.findall('./plugin/[@name="' + id + '"]')
                .concat(this.doc.findall('./feature/param[@name="id"][@value="' + id + '"]/..'));
            var children = this.doc.getroot().getchildren();
            plugins.forEach(function (plugin) {
                var idx = children.indexOf(plugin);
                if (idx > -1) {
                    children.splice(idx, 1);
                }
            });
        }
    }
1094653
function(instance) {
      if (!instance.id) {
        throw new Error("delete(): `id` must be defined");
      }

      return api
        .one(config.entity, instance.id)
        .delete();
    }
593924
public static <T extends Model, S extends Serializable> void deleteBatch(Class<T> model, List<S> idList) {
        deleteBatch(model, AnimaUtils.toArray(idList));
    }
453388
public QYResultType delete(Integer id){
        BeanUtil.requireNonNull(id, "id is null");
        String url = BASE_API_URL + "cgi-bin/department/delete?access_token=#&id=" + id;
        BaseResponse r = executeGet(url);
        return QYResultType.get(r.getErrcode());
    }
462548
@DELETE
  @Path("{id}")
  @RolesAllowed({"ROLE_ADMIN"})
  public Response delete(@PathParam("id") Long id) {
    checkNotNull(id);
    userService.deleteById(id);
    return Response.noContent().build();
  }
366793
public void deleteLotDownloadList(int id) {
        ClientResource resource = new ClientResource(Route.DOWNLOADLIST_LOT.url(id));
        resource.setChallengeResponse(this.auth.toChallenge());

        resource.delete();
    }
984189
public BoxRequestsFolder.DeleteFolderFromCollection getDeleteFromCollectionRequest(String id) {
        BoxRequestsFolder.DeleteFolderFromCollection request = new BoxRequestsFolder.DeleteFolderFromCollection(id, getFolderInfoUrl(id), mSession);
        return request;
    }
1197476
@DELETE
	@Path("/{id}")
	public ReplyObject deleteAccumulator(@PathParam("id") String id){
		try{
			getAccumulatorAPI().removeAccumulator(id);
			return ReplyObject.success();
		}catch(APIException e){
			return ReplyObject.error(e);
		}
	}