Skip to content

Instantly share code, notes, and snippets.

@cobanov
Created April 24, 2023 08:28
Show Gist options
  • Save cobanov/023f497e6790b74e79c44c76ce67e68b to your computer and use it in GitHub Desktop.
Save cobanov/023f497e6790b74e79c44c76ce67e68b to your computer and use it in GitHub Desktop.
from atprototools import Session
from tqdm import tqdm
USERNAME = "<username>.bsky.social"
PASSWORD = "<password>"
SKOOTS_TO_DELETE = 63
session = Session(USERNAME, PASSWORD)
DID_KEY = session.DID.split(":")[-1]
latest_skoots = (
session.get_latest_n_skoots(USERNAME, SKOOTS_TO_DELETE)
.json()
.get("feed")
)
for skoot in tqdm(latest_skoots):
rkey = skoot.get("post").get("uri").split("/")[-1]
resp = session.delete_skoot(DID_KEY, rkey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment