NetBox icon

NetBox

Consume NetBox API

Actions243

Device Type → Delete

AI-generated

Overview

This node interacts with the NetBox API to delete a specific device type record within the DCIM domain. It is useful in scenarios where you need to programmatically remove device type entries from your NetBox inventory, such as cleaning up obsolete or incorrect device types.

Use Case Examples

  1. Deleting a device type by specifying its ID to maintain an up-to-date inventory in NetBox.
  2. Automating the removal of device types as part of a network infrastructure cleanup process.

Properties

Name Meaning
Domain Specifies the domain of the NetBox API to target, here it is set to 'dcim' for device-related resources.
Device Type ID The unique identifier of the device type to be deleted.

Output

JSON

  • id - The ID of the deleted device type record.
  • status - Status of the delete operation, typically indicating success or failure.

Dependencies

  • Requires an API key credential for authenticating with the NetBox API.

Troubleshooting

  • Common issues include providing an invalid or non-existent device type ID, which will result in an error from the NetBox API indicating the record was not found.
  • Authentication errors due to missing or incorrect API credentials will prevent the node from executing successfully.
  • Network connectivity issues to the NetBox server can cause timeouts or failures.

Links

Discussion