waifuim
    Preparing search index...

    Class StorageDiffService

    Index

    Constructors

    Methods

    • Delete database records for images missing from S3.

      Removes one or more image records from the database whose files no longer exist in S3. Use this to clean up orphaned database entries found via the MissingFromS3 diff mode. No S3 deletion is performed since the files are already absent.

      Parameters

      • imageIds: number[]

        List of image IDs to delete from the database.

      Returns Promise<void>

      AuthenticationRequired if authentication is missing.

      ApiError with status 401 if authentication is invalid.

      ApiError with status 403 if user does not have admin role.

    • Delete orphaned files from S3.

      Removes one or more files from S3 storage that have no corresponding database record. Use this to clean up orphaned files found via the OrphansInS3 diff mode.

      Parameters

      • fileNames: string[]

        List of S3 file names (keys) to delete.

      Returns Promise<void>

      AuthenticationRequired if authentication is missing.

      ApiError with status 401 if authentication is invalid.

      ApiError with status 403 if user does not have admin role.