Delete an Uploaded File
delete
/storage/v1/Files
Request
Query Parameters
-
fileName: string
Name of the file.
-
filePartName(optional): string
Name of the file part. Used when the file is in multiple parts.
-
isPublic: boolean
Public or private file.
Response
200 Response
File deleted.
404 Response
Not found.
Examples
The following example shows how to delete a public or private file from Oracle Public Cloud Storage by submitting a DELETE request on the REST resource using cURL. For more information about cURL, see Use cURL.
cURL Command
Note:
The command in this example uses the URL structurehttps://tenant-base-url/resource-path
, where
tenant-base-url
represents the Identity Service URL, and the resource path represents the Identity Service API. See
Send Requests for the appropriate URL structure to use.
curl
-X DELETE
-H "Authorization: Bearer <Access Token Value>"
https://tenant-base-url/storage/v1/Files
Example of Response Body
The following example shows the contents of the response body in JSON format:
{
"status": 204,
"response": {
}
}