public function deleteRecords($recordIds, $arm = null)
    {
        $data = array (
                'token'        => $this->apiToken,
                'content'      => 'record',
                'action'       => 'delete',
                'returnFormat' => 'json'
        );
        
        $data['records'] = $this->processRecordIdsArgument($recordIds);
        $data['arm']     = $this->processArmArgument($arm);
        
        $result = $this->connection->callWithArray($data);
        
        $this->processNonExportResult($result);
        
        return $result;
    }
public function deleteRecords($recordIds, $arm = null)
    {
        $data = array (
                'token'        => $this->apiToken,
                'content'      => 'record',
                'action'       => 'delete',
                'returnFormat' => 'json'
        );
        
        $data['records'] = $this->processRecordIdsArgument($recordIds);
        $data['arm']     = $this->processArmArgument($arm);
        
        $result = $this->connection->callWithArray($data);
        
        $this->processNonExportResult($result);
        
        return $result;
    }
public function deleteRecords ( $ recordIds , $ arm = null ) { $ data = array ( 'token' => $ this -> apiToken , 'content' => 'record' , 'action' => 'delete' , 'returnFormat' => 'json' ) ; $ data [ 'records' ] = $ this -> processRecordIdsArgument ( $ recordIds ) ; $ data [ 'arm' ] = $ this -> processArmArgument ( $ arm ) ; $ result = $ this -> connection -> callWithArray ( $ data ) ; $ this -> processNonExportResult ( $ result ) ; return $ result ; }
Deletes the specified records from the project.

@param array $recordIds array of record IDs to delete
@param string $arm if an arm is specified, only records that have
one of the specified record IDs that are in that arm will
be deleted.

@throws PhpCapException

@return integer the number of records deleted. Note that as of
REDCap version 7.0.15 (at least) the number of records
deleted will not be correct for the case where an arm
is specified and some of the record IDs specified are
not in that arm.
Deletes the specified records from the project .