{"record":{"id":"195f9c902a27e851","repo":"ipfs/kubo","slug":"multiple-remote-pins-are-matching-this-query-add","errorCode":null,"errorMessage":"multiple remote pins are matching this query, add --force to confirm the bulk removal","messagePattern":"multiple remote pins are matching this query, add --force to confirm the bulk removal","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/commands/pin/remotepin.go","lineNumber":442,"sourceCode":"\t\t}\n\n\t\tpsCh := make(chan pinclient.PinStatusGetter)\n\t\terrCh := make(chan error, 1)\n\t\tctx, cancel := context.WithCancel(req.Context)\n\t\tdefer cancel()\n\n\t\tgo func() {\n\t\t\terrCh <- lsRemote(ctx, req, c, psCh)\n\t\t}()\n\t\tfor ps := range psCh {\n\t\t\trmIDs = append(rmIDs, ps.GetRequestId())\n\t\t}\n\t\tif err = <-errCh; err != nil {\n\t\t\treturn fmt.Errorf(\"error while listing remote pins: %v\", err)\n\t\t}\n\n\t\tif len(rmIDs) > 1 && !req.Options[pinForceOptionName].(bool) {\n\t\t\treturn fmt.Errorf(\"multiple remote pins are matching this query, add --force to confirm the bulk removal\")\n\t\t}\n\n\t\tfor _, rmID := range rmIDs {\n\t\t\tif err = c.DeleteByID(ctx, rmID); err != nil {\n\t\t\t\treturn fmt.Errorf(\"removing pin identified by requestid=%q failed: %v\", rmID, err)\n\t\t\t}\n\t\t}\n\t\treturn nil\n\t},\n}\n\n// remote service commands\n\nvar addRemotePinServiceCmd = &cmds.Command{\n\tHelptext: cmds.HelpText{\n\t\tTagline:          \"Add remote pinning service.\",\n\t\tShortDescription: \"Add credentials for access to a remote pinning service.\",\n\t\tLongDescription: `","sourceCodeStart":424,"sourceCodeEnd":460,"githubUrl":"https://github.com/ipfs/kubo/blob/329838acdfafae224582930457efe80aa217afc0/core/commands/pin/remotepin.go#L424-L460","documentation":"Safety confirmation for 'ipfs pin remote rm': the filter query matched more than one remote pin, and removing several pins at once requires explicit --force. Without it, only single-pin matches are auto-removed.","triggerScenarios":"Thrown at core/commands/pin/remotepin.go:442 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Narrow the query (add --requestid or a more specific --name/--cid) so exactly one pin matches","Re-run with --force if you really intend to bulk-remove all matching pins"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"329838acdfafae224582930457efe80aa217afc0","analyzedAt":"2026-09-03T18:30:52.135Z","contentChangedAt":"2026-09-03T18:30:52.135Z","schemaVersion":2},"datasetVersion":"2026-09-11T00:17:11.886Z"}