Skip to content

Instantly share code, notes, and snippets.

@mkorostoff
Last active August 29, 2015 14:04
Show Gist options
  • Save mkorostoff/bcd0726aa18788018144 to your computer and use it in GitHub Desktop.
Save mkorostoff/bcd0726aa18788018144 to your computer and use it in GitHub Desktop.
<?php
/**
* @usage
* 1. Save this file to your computer.
*
* 2. Navigate to console.gigya.com and click "export users" http://take.ms/2b6Ff
*
* 3. This will download a spreadsheet of gigya users. Open the spread sheet
* and make note of the range of user IDs.
*
* 4. Adjust the values on line 22 below to encompass the range of users you
* wish to delete. For instance, if you wish to delete users 75 through 100,
* set $i = 75; $i < 100
*
* 5. Invoke this file with `drush @radius.local scr /absolute/path/to/this/file.php`
*
*/
/**
* This will delete users 1 through 30 from the gigya database.
*/
for ($i = 1; $i < 30; $i++) {
$gigya = new GigyaUser($i);
$gigya->deleteAccount();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment