> Source: [sk170577](https://support.checkpoint.com/results/sk/sk170577)

# sk170577 - Cannot delete Threat Emulation Security Gateway object in SmartConsole

| Property | Value |
|----------|-------|
| Solution ID | sk170577 |
| Date Created | 2020-11-19 |
| Last Modified | 2025-06-18 |
| Technical Level | General |
| Products | SmartConsole |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Symptoms

- * Cannot delete Threat Emulation Gateway object in SmartConsole, telling object is used.

* "Where used" is empty.

* After setting cpm in debug level:  

  `$FWDIR/scripts/cpm_debug.sh -t crud -s DEBUG `  

  Reproduce the issue, trying to delete Threat Emulation Gateway object in SmartConsole.  

  **Stop the debug** with:  

  `# $FWDIR/scripts/cpm_debug.sh -t crud -s INFO`  
  `
  # $FWDIR/scripts/cpm_debug.sh -r`  

  Examine cpm.elg log file, searching for Threat Emulation Gateway object name (CP-TE1000X-POC for example):  

  # grep "CP-TE1000X-POC" $FWDIR/log/cpm.elg  

  Verify that the exact failure is displayed:  

  `ObjectDeletionException with objId = 2ac81233-c03d-4e38-bb5b-aa994192dbf5, objName = CP-TE1000X-POC, reason = it is used by the following object(s):
  TESettings_F934A9B0-8B59-42CB-BF8C-2468A2CE5F90 objid:[ed1c4ea3-fe23-4f2f-aa11-1f28e9e60f2f] (field:emulationGw)`

## Solution

This problem was fixed. The fix is included in:

* [Jumbo Hotfix Accumulator for R81.10](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81.10/Default.htm) starting from Take 79
* [Jumbo Hotfix Accumulator for R81](https://sc1.checkpoint.com/documents/Jumbo_HFA/R81/Default.htm) starting from Take 77
* [Jumbo Hotfix Accumulator for R80.40](https://sc1.checkpoint.com/documents/Jumbo_HFA/R80.40/Default.htm) starting from Take 190

If you choose not to upgrade, follow these steps:

In the above example, you can see in the following line that the object you tried to delete:  
`ObjectDeletionException with objId = 2ac81233-c03d-4e38-bb5b-aa994192dbf5, objName = CP-TE1000X-POC, reason = it is used by the following object(s):`  
is referred by:  
`TESettings_F934A9B0-8B59-42CB-BF8C-2468A2CE5F90 objid:[ed1c4ea3-fe23-4f2f-aa11-1f28e9e60f2f] (field:emulationGw)`  

To delete the objid of this TESettings item from command line, run:  
`# mgmt_cli -r true login > session.id`  
`# mgmt_cli -s session.id set-session description "Delete TE-GW" new-name "Delete-TE-GW"`  
`# mgmt_cli -s session.id delete-generic-object uid ed1c4ea3-fe23-4f2f-aa11-1f28e9e60f2f`  
`# mgmt_cli -s session.id publish`

Reconnect on SmartConsole and try again to delete Threat Emulation Gateway object

**Note:**Be very careful when deleting an object from command line.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
