Skip to content

How can I remove an item or a property that is not usefull anymore? #355

Answered by LeMyst
versant2612 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @versant2612
If you use the pre-release version (0.12), you can do something like this:

login_instance = <login instance creation>
wbi = WikibaseIntegrator(login=login_instance)
item = wbi.item.get('Q1234')
item.delete()

prop = wbi.property.get('P1234')
prop.delete()

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@versant2612
Comment options

@LeMyst
Comment options

@versant2612
Comment options

Answer selected by versant2612
Comment options

You must be logged in to vote
1 reply
@LeMyst
Comment options

Comment options

You must be logged in to vote
6 replies
@dpriskorn
Comment options

@versant2612
Comment options

@dpriskorn
Comment options

@LeMyst
Comment options

@versant2612
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #351 on June 15, 2022 11:28.