Last active
August 29, 2015 14:04
-
-
Save mkorostoff/bcd0726aa18788018144 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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