# MinIO/S3/R2 ghost files

Tested on MinIO, S3, and R2.

{% code overflow="wrap" %}

```
$ sudo apt install awscli

$ aws configure
AWS Access Key ID [None]: xxxxxxxxxxx
AWS Secret Access Key [None]: xxxxxxxxxxxxx
Default region name [None]:
Default output format [None]:

$ aws s3api list-multipart-uploads --bucket BUCKET-NAME --endpoint-url https://YOURENDPOINT.r2.cloudflarestorage.com/BUCKET-NAME

$ aws s3api list-multipart-uploads --bucket BUCKET-NAME --endpoint-url https://YOURENDPOINT.r2.cloudflarestorage.com/BUCKET-NAME
{
    "Uploads": [
        {
            "UploadId": "REALLY-LONG-ID-STRING",
            "Key": "folder/file.extension",
            "Initiated": "2023-01-24T12:07:30.202000+00:00",
            "StorageClass": "STANDARD",
            "Owner": {
                "DisplayName": "API-KEY",
                "ID": "API-KEY"
            },
            "Initiator": {
                "ID": "API-KEY",
                "DisplayName": "API-KEY"
            }
        }
    ]
}

$ aws s3api abort-multipart-upload --bucket BUCKET-NAME --endpoint-url https://YOURENDPOINT.r2.cloudflarestorage.com --upload-id "REALLY-LONG-ID-STRING" --key "folder/file.extension"

$ aws s3api list-multipart-uploads --bucket BUCKET-NAME --endpoint-url https://YOURENDPOINT.r2.cloudflarestorage.com/BUCKET-NAME
(this should be empty and/or your previous UploadID won't exist)


```

{% endcode %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.iblue.team/general-notes-1/minio-s3-r2-ghost-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
