Managing disputes via the API is only available to merchants who can access disputes in the Braintree Control Panel.

You can remove evidence on a dispute through this method. You can only remove evidence for disputes that have a status of OPEN.

$result = $gateway->dispute()->removeEvidence(

If the evidence is successfully removed from the dispute, the result will be successful. Otherwise, check for validation errors.

if ($result->success) {
  # evidence removed successfully
} else {
  echo $result->errors;

If the dispute can't be found, you'll receive a Braintree\Exception\NotFound exception.

disputeId required, string

The unique dispute identifier.

evidenceId required, string

The unique evidence identifier. Found on the dispute object evidence.id