Forum Discussion
Mudpuppy_182361
Nimbostratus
Sep 12, 2015Rest API call to delete all objects in a partition
Is there a API call that will allow me to delete a partition and all objects in it?
If not,
How can I list all objects in a partition and go about deleting them, then finally deleting the ...
Sep 14, 2017
On my phone now so can't verify this. Be careful and make sure you have good parameter validation when using it.
$ curl -sk -u 'admin:admin' -H 'Content-Type: application/json' -X POST \
-d '{"command": "run", "utilCmdArgs": "-c \"rm /config/partitions/mypartition/bigip.conf\""}' \ https://$HOST/mgmt/tm/util/bash | jq
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects