delete method

JSPromise<JSBoolean> delete(
  1. String cacheName
)

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. If no Cache object is found, it resolves to false.

You can access CacheStorage through the global caches property.

Implementation

external JSPromise<JSBoolean> delete(String cacheName);