I think you'll need to use a third party tool for this I'm afraid. Try using a custom webhook with Make's "Archive" module: https://www.make.com/en/help/app/archive
Yeah as @TheTimeSavingCo says you wouldn’t be able to do this in an Airtable script without some external library. Whether, as they say, that’s using Make or Zapier etc to access an archive utility or going directly from the script to an archive tool that has an API such as https://archiveapi.com/