delete

inline suspend fun Cache.delete(url: String, options: CacheQueryOptions): Boolean(source)
inline suspend fun Cache.delete(url: String): Boolean(source)

The delete() method of the Cache interface finds the Cache entry whose key is the request, and if found, deletes the Cache entry and returns a Promise that resolves to true.

MDN Reference


inline suspend fun Cache.delete(url: URL, options: CacheQueryOptions): Boolean(source)
inline suspend fun Cache.delete(url: URL): Boolean(source)
inline suspend fun Cache.delete(request: Request, options: CacheQueryOptions): Boolean(source)
inline suspend fun Cache.delete(request: Request): Boolean(source)


inline suspend fun CacheStorage.delete(cacheName: String): Boolean(source)

The delete() method of the CacheStorage interface finds the Cache object matching the cacheName, and if found, deletes the Cache object and returns a Promise that resolves to true.

MDN Reference