removefile.do

Veracode APIs

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.

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. See Using HTTPie with the Python Authentication Library.

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>