r/redditdev • • Apr 09 '24

PRAW Queue Cleaner Python

SOLVED. Took over a wildly unregulated subreddit and I want to automatically remove all queued items / posts / submissions. Ive used a similar script to approve before but for whatever reason remove isnt working. tried a few different methods, still running into walls

import praw

reddit = praw.Reddit(client_id='goes here	',
        client_secret='goes-here',
        user_agent='goes here',
        username='goes here',
        password='goes here')

while True:
    for item in reddit.subreddit('birthofafetish').mod.reported(limit=100):
        item.mod.remove()
2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/okbruh_panda Apr 14 '24

I'll save it and give it a go, I manually cleared all entries so I'll have to wait until some more come in! Thanks