Tried this using the following 2 snippets; both failed.
Snippet 1
conn.tooling.sobject('FieldSet')
.delete({ DeveloperName: fieldsetName }, function(err, meta) {
if (err) console.error(err.message);
else console.log("Fieldsets deleted: " + res.length);
});
Provided external ID field does not exist or is not accessible: [object Object]
Snippet 2
conn.tooling.delete('FieldSet', fsIds, function(err, res) {
if (err) console.error(err.message);
else console.log("Fieldsets deleted: " + res.length);
});
x insufficient access rights on object id
x DELETE htps://mypkg.na15.visual.force.com/services/data/v34.0/tooling/sobjects/FieldSet/0IXi00000008oMTGAA 400 (Bad Request)
How can I delete a list of fieldsets using either API?