delete_device
Remove a device registration from FortiManager without affecting the actual device or its configuration. This operation is irreversible.
Instructions
Delete a device from FortiManager.
Removes a device registration. Does not affect the actual device or its configuration - only removes it from FortiManager management.
WARNING: This operation cannot be undone.
Args: adom: ADOM name where device is located device: Device name to delete flags: Additional flags like ["create_task"]
Returns: dict: Delete result with keys: - status: "success" or "error" - task_id: Task ID if run as background task - message: Status or error message
Example: >>> result = await delete_device("root", "FGT-OldBranch") >>> if result['status'] == 'success': ... print("Device removed from FortiManager")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| device | Yes | ||
| flags | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||