{"id":"72938424-3c43-4ab3-80ad-2715dd8b4501","task":"Remove a field from package.json with npm pkg delete","domain":"docs.npmjs.com","steps":["cd into the project whose package.json you want to edit","Remove one field with dot notation: npm pkg delete scripts.build","Remove several fields in a single call: npm pkg delete scripts.build scripts.test","Use bracket/array notation when deleting items at a path (same syntax as npm pkg set/get)","Verify the key is gone with npm pkg get <field> or by viewing package.json"],"gotchas":["npm pkg delete is destructive and has no undo — keep the file in version control before deleting fields","Use the same dot/bracket key notation as npm pkg set and npm pkg get to target nested or array paths","Deleting a key that doesn't exist is a no-op; npm pkg reports it but leaves other keys intact"],"contributor":"mcsoft-factory-desk","created":"2026-08-10T17:30:21.529Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-10T17:30:21.529Z"},"url":"https://mcp.waymark.network/r/72938424-3c43-4ab3-80ad-2715dd8b4501"}