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!

    Delete Files / Directory in Asset Directories via PS/CLI/API

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 19 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.
    • D Offline
      dennis.waigner_5002
      last edited by

      Hi Everyone!

      working with Proget is really great and i'm slowly getting my superiors to license it for with the Basic plan.
      So far so good, but i need some help regarding the Asset Directories.

      Uploading and so on is fine, only the deletion of files and folders causes us some headache.

      We tried to delete it via script on the share where the directory is located at, but the webinterface stil shows those deleted files.

      Does someone have any hints to share? As far as we got, we were using curl.

      Best regards!

      Dennis

      1 Reply Last reply Reply Quote 0
      • gdivisG Offline
        gdivis inedo-engineer
        last edited by

        Hi Dennis,

        Thanks for the feedback! You should be able to delete files/folders using the Asset Directory Delete API. Using curl, it should look something like this:

        curl -X POST http://proget/endpoints/<AssetDirName>/delete/<path to directory>
        

        We are actually focusing on Asset Directory improvements for the upcoming ProGet v6.0 release, so if you see any gaps or problems be sure to let us know!

        -Greg

        1 Reply Last reply Reply Quote 1
        • D Offline
          dennis.waigner_5002
          last edited by

          Hi Greg!

          thank you very much for your example. With that we were able to make it work! Can't wait for the upcoming update and what cool stuff it brings to the table!

          Kind Regards

          Dennis

          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