My import script builds a list of files that exist in a namespace and uses this list to issue the putPage calls using an empty string as the content. Therefore, the only pages I'm attempting to delete are ones that exist. In spite of this, I receive the error.
Here's my code in case you're interested:
function deleteAllProcesses($client, $loginResult)
{
$processFiles = str_replace(Array("data/pages/process/", ".txt"),Array("process:", ""),glob("data/pages/process/*.*"));
if ($loginResult && is_array($processFiles))
{
foreach ($processFiles as $fileToDelete)
{
$newPage = $client->query('wiki.putPage', $fileToDelete, "", Array());
}
}
}