async deleteContent()

in util/upload/src/lib/minio.ts [106:125]


    async deleteContent(
        fileAddr: string): Promise<Result> {

        try {
            const exists = await this.existsContent(fileAddr);
            if (exists !== Result.EXISTS) {
                if (exists === Result.DOESNT_EXISTS) return Result.SKIPPED;
                return exists;
            }

            await this.minioClient.removeObject(this.bucket, fileAddr, {forceDelete: true});
            if (this.programOptions["--verbose"])
                process.stdout.write(`Delete ${fileAddr}: OK\n`);
            return Result.COMPLETED;
        } catch (err) {
            if (this.programOptions["--verbose"])
                process.stdout.write(`Delete ${fileAddr}: KO\n`);
            return Result.ERROR;
        }
    }