Skip to content

This clears existing data in Device42. Use for reset only. Limited to certain categories for now.

License

Notifications You must be signed in to change notification settings

device42/ResetDevice42Data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ResetDevice42Data

This clears existing data in Device42. Use for reset only. Limited to certain categories for now.

Run deleter.py. It fetchest the IDs for objects using the GET call and deletes the objects using the ID for each object. Or get ids from supplied file and delete the objects same way.

Possible Options

'-r', '--racks', Delete all Racks

'-b', '--buildings', Delete all Buildings

'-p', '--pdus', Delete all PDUs

'-s', '--subnets', Delete all Subnets

'-d', '--devices', Delete all Devices

'-i', '--assets', Delete all Assets

'-w', '--hardwares', Delete all Hardwares

'-n', '--ips',Delete all IPs

'-m', '--macs',Delete all MACs

'-v', '--vlans', Delete all VLANs

'-t', '--parts', Delete all parts

'-a', '--all', Delete EVERYTHING

'-f', '--file' Get IDS from supplied file

'-e', '--serviceinstances', Delete all Service Instances

Examples of use

python deleter.py --racks - delete all racks.

python deleter.py --buildings - delete all buildings.

python deleter.py --racks --file ids.csv - delete racks by ids from ids.csv file.

python deleter.py --all - delete all possible objects.

About

This clears existing data in Device42. Use for reset only. Limited to certain categories for now.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages