@newspapper/core
    Preparing search index...

    Function deleteUpload

    • Remove the files first, then the row, so neither is left orphaned.

      Parameters

      • db: Database
      • id: number

      Returns Upload | undefined