Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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!

    Nuget.exe can't delete a .nupkg from proget feed

    Scheduled Pinned Locked Moved Support
    windowsfeedsprogetnuget
    3 Posts 1 Posters 17 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Trying to use nuget.exe to delete a package. The attempt returns success, but the package doesn't really get deleted.

      PS C:\Windows\system32> .\nuget.exe delete Package.Service.Log 1.2.205 Username:SecretPassword -Source http://progetserver.mycompany.com:81
      -Verbosity detailed

      Package.Service.Log 1.2.205 will be deleted from the 'http://progetserver.mycompany.com:81'. Would you like to continue? (y/N) y
      WARNING: Deleting Package.Service.Log 1.2.205 from the 'http://progetserver.mycompany.com:81'.
      DELETE http://progetserver.mycompany.com:81/api/v2/package/Package.Service.Log/1.2.205
      OK http://progetserver.mycompany.com:81/api/v2/package/Package.Service.Log/1.2.205 92ms
      Package.Service.Log 1.2.205 was deleted successfully.

      I've also tried to delete using the API, but there's no method to delete a nuget package. Anyone have success deleting packages without having to go into the web UI?

      Product: ProGet
      Version: 4.0.13

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        In this case, make sure the web user has permissions to delete from the feed package. otherwise the delete command is supported.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          In my original example that I used, the web user did have permissions. In fact, the user I used was the admin user. I did both create a special user with delete attributes and test the admin user. Both results were the same. Success was reported, but the package never really was deleted. I'm not using a feed APIKey, I'm only using users that have appropriate rights to do certain things, like delete.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation