Delete an Uploaded File

delete

/storage/v1/Files

Request

Query Parameters
Back to Top

Response

200 Response

File deleted.

404 Response

Not found.
Back to Top

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 structure https://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": {
  }
}
Back to Top