Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

CAN'T DELETE A PACKAGE FROM COMMANDLINE



  • We get this error if we wont delete a release or prerelease package from commandline

    DELETE https://nuget.test-dev.net/nuget/test/Test/1.9.0.980
    System.InvalidOperationException: Failed to process request. 'Not Found'.
    The remote server returned an error: (404) Not Found.. ---> System.Net.WebExcept
    ion: The remote server returned an error: (404) Not Found.
    at System.Net.HttpWebRequest.GetResponse()
    at NuGet.RequestHelper.GetResponse(Func1 createRequest, Action1 prepareRequ
    est, IProxyCache proxyCache, ICredentialCache credentialCache, ICredentialProvid
    er credentialProvider)
    at NuGet.HttpClient.GetResponse()
    at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable1 expectedStatusCode) --- End of inner exception stack trace --- at NuGet.PackageServer.EnsureSuccessfulResponse(HttpClient client, Nullable1
    expectedStatusCode)
    at NuGet.PackageServer.DeletePackageFromServer(String apiKey, String packageI
    d, String packageVersion)
    at NuGet.PackageServer.DeletePackage(String apiKey, String packageId, String
    packageVersion)
    at NuGet.Commands.DeleteCommand.ExecuteCommand()
    at NuGet.Commands.Command.Execute()
    at NuGet.Program.Main(String[] args)

    please help.

    Product: ProGet
    Version: 3.0.0



  • Thanks for the report - it has been filed in our internal issue tracker as issue PG-172. It appears to be only happening with the NuGet v2.8 client and should still work correctly with v2.7 and below.

    The workaround is to simply delete the packages manually from the disk storage path.



  • I get the same error with nuget.exe 2.7,2.6 and 2.5. We hope you can fix it in future version


Log in to reply
 

Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation