Hello!
I'm trying to delete a npm package from a feed via native api.
await fetch(`${host}/api/json/NpmPackages_DeletePackage`, 'post', {
'Content-Type': 'application/json'
}, JSON.stringify({
Feed_Name: 'npm',
Package_Name: name.split('/').pop(), // `pkgname`
Scope_Name: name.split('/')[0], // '@myscope`
API_Key: this.token,
Version_Text: pkg.Version.toString() // `2.3.4`
}));
And it returns 200: OK
with simple headers
'content-length': '0',
'cache-control': 'private',
'x-proget-version': '5.3.24.7',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
'x-frame-options': 'SAMEORIGIN',
'x-content-type-options': 'nosniff',
'x-xss-protection': '1; mode=block',
But a package remains in a feed.
How can I remove a package from npm feed with api?
ProGet version 5.3.24 hosted on docker