# Remove Blip With Subtype

{% hint style="warning" %}
This API endpoint requires the **pro** version of Sonoran CAD or higher.\
For more information, see our [pricing ](https://docs.sonoransoftware.com/cad/pricing/faq)page.
{% endhint %}

This framework export handles the [Remove Blip API endpoint](https://docs.sonoransoftware.com/cad/api-integration/api-endpoints/emergency/custom-blips/remove-blip).

```javascript
function removeWithSubtype(subType, cb) {
    Utilities.CAD.getBlips(function (res) {
        let dres = JSON.parse(res);
        let ids = [];
        if (typeof dres == "table") {
            for (let _ in dres) {
                let v = dres[_];
                if (v.subType == subType) {
                    ids.push(v.id);
                }
            }
            Utilities.CAD.removeBlip(ids, cb);
        } else {
            console.log("No blips were returned.");
        }
    });
}
```

### Parameters

| Property  | Type     | Description                 |
| --------- | -------- | --------------------------- |
| `subType` | String   | Blip subtype to remove      |
| `cb`      | Function | OPTIONAL: Callback function |
