removefile.do
The removefile.do
call deletes a file from an existing application build.
Before using this API, Veracode strongly recommends that you read API usage and access guidelines. Ensure you access the APIs with the domain for your region.
Resource URL
https://analysiscenter.veracode.com/api/5.0/removefile.do
Parameters
Name | Type | Description |
---|---|---|
app_id Required | Integer | Application ID. |
file_id Required | Integer | Obtain the file_id by calling getfilelist.do. |
sandbox_id | Integer | Enter the ID of the sandbox that contains the file to delete. |
HTTPie example
Examples use the HTTPie command-line tool.
http --auth-type=veracode_hmac "https://analysiscenter.veracode.com/api/5.0/removefile.do" "app_id==<application ID>" "file_id==<file ID>"
HTTPie results
The removefile.do
call returns the removefile
XML document, which references the removefile.xsd
schema file. You can use the XSD schema file to validate the XML data.
<?xml version="1.0" encoding="UTF-8"?>
<removefile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://analysiscenter.veracode.com/schema/removefile"
xsi:schemaLocation="https://analysiscenter.veracode.com/schema/removefile
https://analysiscenter.veracode.com/resource/removefile.xsd" account_id="29188" app_id="71935">
<result>success</result>
</removefile>