Was this helpful?

 

API Platform Base Path: https://api.enterprise.apigee.com/v1/o/{org_name}

API Resource Path:

/resourcefiles/{resource_type}/{resource_name}

Description: Deletes a resource file from an organization, environment or API proxy

Verb: DELETE
Auth: Basic Auth
Sample Request:
At the organization level:

$ curl -X DELETE \
https://api.enterprise.apigee.com/v1/o/{org_name}/resourcefiles/jsc/setHeader.js \
-u myname:mypass

At the environment level:

$ curl -X DELETE \
https://api.enterprise.apigee.com/v1/o/{org_name}/environments/test/resourcefiles/jsc/setHeader.js \
-u myname:mypass

At the API proxy level:

$ curl -X DELETE \
https://api.enterprise.apigee.com/v1/o/{org_name}/apis/{api_name}/revisions/{revision_number}/resourcefiles/jsc/setHeader.js \
-u myname:mypass
Sample Response:
{
  "name" : "setHeader.js",
  "type" : "jsc"
}

 

Help or comments?

  • Something's not working: See Apigee Support
  • Something's wrong with the docs: Click Send Feedback in the lower right.
    (Incorrect? Unclear? Broken link? Typo?)