Content Library Item DownloadSession delete

Content Library Item DownloadSession delete

Deletes a download session. This removes the session and all information associated with it.

Removing a download session leaves any current transfers for that session in an indeterminate state (there is no guarantee that the transfers will be able to complete). However there will no longer be a means of inspecting the status of those downloads except by seeing the effect on the library item.

Download sessions for which there is no download activity or which are complete will automatically be expired and then deleted after a period of time.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires System.Anonymous.
Request
URI
DELETE
https://{api_host}/api/content/library/item/download-session/{downloadSessionId}
COPY
Path Parameters
string
downloadSessionId
Required

Identifier of the download session to be deleted.

The parameter must be an identifier for the resource type: com.vmware.content.library.item.DownloadSession.


Authentication
This operation uses the following authentication methods.
Responses
204

Success!

Operation doesn't return any data structure

404

if the download session does not exist.

Returns Vapi Std Errors NotFound of type(s) application/json
This response body class contains all of the following: InlineVapi Std Errors NotFound0
{
    "messages": [
        {
            "id": "string",
            "default_message": "string",
            "args": [
                "string"
            ],
            "params": {
                "params": {
                    "s": "string",
                    "dt": "string",
                    "i": 0,
                    "d": "number",
                    "l": "Vapi Std NestedLocalizableMessage Object",
                    "format": "string",
                    "precision": 0
                }
            },
            "localized": "string"
        }
    ],
    "data": {},
    "error_type": "string"
}

Code Samples
COPY
                    curl -X DELETE -H 'Authorization: <value>' https://{api_host}/api/content/library/item/download-session/{downloadSessionId}