Oddbean new post about | logout
 Yeah, so... batch-processing delete-request events is a friggin nightmare. I give up. 
 nostr:nprofile1qqsxqn5kuzvex6ssfzpetzcypdrkwts0qjxf3tre8umllex8yqneavsprpmhxue69uhhyetvv9ujumn0wdnxcctjv5hxxmmdqyg8wumn8ghj7mn0wd68ytnhd9hx2qgjwaehxw309amk7apww468smewdahx208h2hh how'd you mass delete? 
 I used nak to pull down all of the events on a relay from a particular npub, then I broke it up into 100-event chunks, published a kind 05 for each of those chunks, and then broadcasted the kind 05 to the whole list. 
 Some clients have a local relay so the notes might still show up for you until you clear the cache. You can use nak to verify if other relays are still serving the events. 
 I did it in batches with a custom script I wrote. I can check if I saved the script when I get home. 
 I used Blastr to publish the delete events. Not sure if Mutiny’s Blastr relay is still up. I deleted over 10k events like this. 
 He had a delete script, too, that ran on nostr-tool, but it doesn't work right now.

I can just download the full nostr.watch API list, like he did and run through it. Didn't want to do that, if I can avoid it, as it spams everyone's relays, but oh well. 
 I did mine in batches of 256, so I sent fewer than 50 queries to each relay. That shouldn’t bother relays. If it does, we have a bigger problem. 

Here’s my script if you want to compare it to what you wrote. 

https://gist.github.com/SamSamskies/0088e7a14f3df37550c796481b54d0fe 
 Just upped it to 1000 per batch. Heh. YOLO, baby. 
 I did 256 cause I think some relays have that cap on event tags or at least they used to 
 I think everyone upped it because of follows. 😅  
 That name! 🤣  
 That was the hashtag I used for the nukening of my old profile and notes. I think @liminal was the only one that noticed me do this. 😂 
 Here's how I get around using blastr. I looked where he gets the relay list from. He just uses the API from Nostr.Watch.

```
// download a list of active relays
$url = "https://api.nostr.watch/v1/online";    
$page = file_get_contents($url);
$requestedRelays = json_decode($page, true);
sort($requestedRelays);
``` 
 From the results, it looks like some of the relays are rejecting notes from npubs without a valid NIP-05. 
 It’s possible they don’t have the note to delete then. If they do, just add a nip-05 on the npub. Once you’re done deleting the notes, you can remove the nip-05 or just nuke the kind 0. 
 They probably don't have it, since I never had a NIP-05 on that npub and haven't used it in half a year. 
 Just thought it was interesting that not having a NIP-05 might prevent you from persistently deleting your own events. 
 I used Blastr to publish the delete events. Not sure if Mutiny’s Blastr relay is still up. I deleted over 10k events like this. 
 He had a delete script, too, that ran on nostr-tool, but it doesn't work right now.

I can just download the full nostr.watch API list, like he did and run through it. Didn't want to do that, if I can avoid it, as it spams everyone's relays, but oh well. 
 I did mine in batches of 256, so I sent fewer than 50 queries to each relay. That shouldn’t bother relays. If it does, we have a bigger problem. 

Here’s my script if you want to compare it to what you wrote. 

https://gist.github.com/SamSamskies/0088e7a14f3df37550c796481b54d0fe 
 Just upped it to 1000 per batch. Heh. YOLO, baby. 
 I did 256 cause I think some relays have that cap on event tags or at least they used to 
 I think everyone upped it because of follows. 😅  
 That name! 🤣  
 That was the hashtag I used for the nukening of my old profile and notes. I think @liminal was the only one that noticed me do this. 😂 
 Here's how I get around using blastr. I looked where he gets the relay list from. He just uses the API from Nostr.Watch.

```
// download a list of active relays
$url = "https://api.nostr.watch/v1/online";    
$page = file_get_contents($url);
$requestedRelays = json_decode($page, true);
sort($requestedRelays);
``` 
 From the results, it looks like some of the relays are rejecting notes from npubs without a valid NIP-05. 
 It’s possible they don’t have the note to delete then. If they do, just add a nip-05 on the npub. Once you’re done deleting the notes, you can remove the nip-05 or just nuke the kind 0. 
 They probably don't have it, since I never had a NIP-05 on that npub and haven't used it in half a year. 
 Just thought it was interesting that not having a NIP-05 might prevent you from persistently deleting your own events. 
 Some clients have a local relay so the notes might still show up for you until you clear the cache. You can use nak to verify if other relays are still serving the events. 
 From the results, it looks like some of the relays are rejecting notes from npubs without a valid NIP-05. 
 It’s possible they don’t have the note to delete then. If they do, just add a nip-05 on the npub. Once you’re done deleting the notes, you can remove the nip-05 or just nuke the kind 0. 
 They probably don't have it, since I never had a NIP-05 on that npub and haven't used it in half a year. 
 Just thought it was interesting that not having a NIP-05 might prevent you from persistently deleting your own events. 
 I think everyone upped it because of follows. 😅