Welcome to the new Box Support website. Check out all the details here on what’s changed.

Overwrite a file on Box with out creating a new version

New post

Comments

4 comments

  • dandennhardt

    Hi  - There is no concept of a non-versioned file replacement in Box. All files in Box are assigned a unique file id, and when you replace them, the file id stays the same, but a new version id is created.

     

    If you wish to 'replace' a file without preserving the history, I think you have two options:

    1. Delete the file and upload a new one (note that the file id will change)

    2. Upload the new file and remove past versions - https://developer.box.com/reference/delete-files-id-versions-id/

     

    I am not sure if either of these satisfies your use case. Can you please elaborate why you wish to replace a file without preserving versions?

    0
    Comment actions Permalink
  • iancrew

    I’d also point out that if Box was to provide a way to overwrite a file without creating a new version, that’d be a pretty big gift to the ransomware writers of the world...

    0
    Comment actions Permalink
  • badribax

    Thanks for the response and it helps.

    However, what is the difference between overwrite vs upload & remove previous versions for a ransomware.

     

    0
    Comment actions Permalink
  • iancrew

    Box support can recover files for a small window of time even after they’ve been deleted. Presumably the sane would be true for old file versions.

    0
    Comment actions Permalink

Please sign in to leave a comment.