#python #nostr_sdk #asknostr
I am thinking of writing a new python code sample
to 'nuke' an account, for people who wants to 'delete' their profile.
Not sure this is possible, but will try
#python #nostr_sdk #asknostr
I am thinking of writing a new python code sample
to 'nuke' an account, for people who wants to 'delete' their profile.
Not sure this is possible, but will try
Do it. Basically you just need to req all events from a pubkey then create kind 5 events to delete those events. Do that recursively through a list of relays.
No verification the relays will actually delete them, but most should.
i don't know how widespread full support for nip-09 is but #realy - the one i am building does
what you need first is to get the complete list of all the event associated with the account, so you probably need to write a spider that scans all of the relays to compile the list, and then break it up into reasonable numbers of events per delete event and then broadcast those everywhere
relays that support it some of them are even configured to propagate events to other relays to make it actually happen
I am using nostr-sdk library in python
looks like there is a Eventbuilder.delete feature
yeah, it's pretty straight forward
i think possibly you can delete all events of a type from an author (you) with `a` tags, but i gotta tell ya having implemented the spec as well as i could manage, it's complicated, so expect to need some time to get it working
you'll probably need a relay you can run that does deletes properly and make a generator that spews events to it and then you run the delete and then check they are gone
what about this
nevent1qvzqqqqqqypzpka3ntswp659x2yu2nru4qg8s2mpxpkgfr9d3kzpv969jlplyt26qy88wumn8ghj7mn0wvhxcmmv9uq36amnwvaz7tmwdaehgu3dxqcju7tpdd5ksmmwdejjucm0d5hsz9nhwden5te0dehhxarjv4kxjar9wvhx7un89uqzpsxgaymgg027cfxjtuez4ng47uh3qa6w074rf48u3ygzy7yyhuumhgkp9z
instead