src/Thybag/SharePointAPI.php
public function deleteMultiple ($list_name, array $IDs, array $data = array()) {
		/*
		 * change input "array(ID1, ID2, ID3)" to "array(array('id' => ID1),
		 * array('id' => ID2), array('id' => ID3))" in order to be compatible
		 * with modifyList.
		 *
		 * For each ID also check if we have any additional data. If so then
		 * add it to the delete data.
		 */
		$deletes = array();
		foreach ($IDs as $ID) {
			$delete = array('ID' => $ID);
			// Add additional data if available
			if (!empty($data[$ID])) {
				foreach ($data[$ID] as $key => $value) {
					$delete[$key] = $value;
				}
			}
			$deletes[] = $delete;
		}

		// Return a XML as nice clean Array
		return $this->modifyList($list_name, $deletes, 'Delete');
	}
public function deleteMultiple ($list_name, array $IDs, array $data = array()) {
		/*
		 * change input "array(ID1, ID2, ID3)" to "array(array('id' => ID1),
		 * array('id' => ID2), array('id' => ID3))" in order to be compatible
		 * with modifyList.
		 *
		 * For each ID also check if we have any additional data. If so then
		 * add it to the delete data.
		 */
		$deletes = array();
		foreach ($IDs as $ID) {
			$delete = array('ID' => $ID);
			// Add additional data if available
			if (!empty($data[$ID])) {
				foreach ($data[$ID] as $key => $value) {
					$delete[$key] = $value;
				}
			}
			$deletes[] = $delete;
		}

		// Return a XML as nice clean Array
		return $this->modifyList($list_name, $deletes, 'Delete');
	}
public function deleteMultiple ( $ list_name , array $ IDs , array $ data = array ( ) ) { /*
		 * change input "array(ID1, ID2, ID3)" to "array(array('id' => ID1),
		 * array('id' => ID2), array('id' => ID3))" in order to be compatible
		 * with modifyList.
		 *
		 * For each ID also check if we have any additional data. If so then
		 * add it to the delete data.
		 */ $ deletes = array ( ) ; foreach ( $ IDs as $ ID ) { $ delete = array ( 'ID' => $ ID ) ; // Add additional data if available if ( ! empty ( $ data [ $ ID ] ) ) { foreach ( $ data [ $ ID ] as $ key => $ value ) { $ delete [ $ key ] = $ value ; } } $ deletes [ ] = $ delete ; } // Return a XML as nice clean Array return $ this -> modifyList ( $ list_name , $ deletes , 'Delete' ) ; }
DeleteMultiple
Delete existing multiple list items.

@param String $list_name Name of list
@param array $IDs IDs of items to delete
@param array $data An array of arrays of additional required key/value pairs for each item to delete e.g. FileRef => URL to file.
@return Array
DeleteMultiple Delete existing multiple list items .