---
title: "deleteEntry(referencedBy:)"
framework: coreai
role: symbol
role_heading: Type Method
path: "coreai/aimodelcache/deleteentry(referencedby:)"
---

# deleteEntry(referencedBy:)

Deletes a cache entry referenced by bookmark data.

## Declaration

```swift
static func deleteEntry(referencedBy bookmark: Data) throws
```

## Parameters

- `bookmark`: Data previously obtained from AIModel.bookmarkData.

## Discussion

Discussion Use this method to delete a cache entry referenced by bookmark data previously obtained from AIModel.bookmarkData. Because bookmark data encodes both the specific cache instance and the entry within it, this method is static and requires no cache instance to call. The method acquires a file lock and deletes the entry synchronously.
