{"id":23557312,"url":"https://github.com/takuya-nakayasu/cordova-plugin-cache-delete","last_synced_at":"2025-10-30T14:17:38.454Z","repository":{"id":51313202,"uuid":"343418472","full_name":"takuya-nakayasu/cordova-plugin-cache-delete","owner":"takuya-nakayasu","description":"This is a WebView cache plugin for Cordova supporting Android. It allows to delete the cordova webview cache.","archived":false,"fork":false,"pushed_at":"2021-09-11T08:46:13.000Z","size":42,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-17T19:03:21.855Z","etag":null,"topics":["cache","cordova-android","cordova-plugin","ionic","webview"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya-nakayasu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-01T13:03:00.000Z","updated_at":"2024-05-07T07:20:59.000Z","dependencies_parsed_at":"2022-09-05T05:20:36.152Z","dependency_job_id":null,"html_url":"https://github.com/takuya-nakayasu/cordova-plugin-cache-delete","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Fcordova-plugin-cache-delete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Fcordova-plugin-cache-delete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Fcordova-plugin-cache-delete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya-nakayasu%2Fcordova-plugin-cache-delete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya-nakayasu","download_url":"https://codeload.github.com/takuya-nakayasu/cordova-plugin-cache-delete/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231368190,"owners_count":18366067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","cordova-android","cordova-plugin","ionic","webview"],"created_at":"2024-12-26T14:28:06.091Z","updated_at":"2025-10-30T14:17:33.420Z","avatar_url":"https://github.com/takuya-nakayasu.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/cordova-plugin-cache-delete.svg)](https://badge.fury.io/js/cordova-plugin-cache-delete)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Twitter](https://img.shields.io/twitter/follow/takuya_nakayasu?style=social)](https://twitter.com/takuya_nakayasu)\n\n# Cordova plugin to delete Webview cache\n\nThis is a WebView cache plugin for Cordova supporting Android. It allows to delete the cordova webview cache.\n\nThere is one method:\n\n- `CacheDelete.deleteCache()`\n\n![Sample image](https://github.com/takuya-nakayasu/image-garage/blob/22409e0710cbedbcfc68f4de8d6ca30178050588/cordova-plugin-cache-delete.png)\n\n## Installation\n\n**Cordova**\n\n```\ncordova plugin add cordova-plugin-cache-delete\n```\n\n## Supported Platforms\n\n- Android\n\n## Methods\n\n| **Method**                    | **Signature**                             | **Description**                                                                                           |\n| ----------------------------- | ----------------------------------------- | --------------------------------------------------------------------------------------------------------- |\n| **CacheDelete.deleteCache()** | `CacheDelete.deleteCache(): Promise\u003cany\u003e` | Delete the cordova webview cache. This method returns a promise that fulfills when a call was successful. |\n\n## Code example\n\nTo use in a TypeScript(Ionic v5/Angular) file:\n\n```typescript\nimport { Component } from \"@angular/core\";\nimport { Platform } from \"@ionic/angular\";\n\n// Ambient Declarations\ndeclare var CacheDelete: any;\n\n@Component({\n  selector: \"app-tab1\",\n  templateUrl: \"tab1.page.html\",\n  styleUrls: [\"tab1.page.scss\"],\n})\nexport class Tab1Page {\n  constructor(private platform: Platform) {}\n\n  public ngOnInit(): void {\n    this.platform.ready().then(() =\u003e {\n      if (this.platform.is(\"android\")) {\n        // delete cache\n        CacheDelete.deleteCache()\n          .then(() =\u003e console.log(\"delete cache success!!\"))\n          .catch((error) =\u003e console.error(error));\n      }\n    });\n  }\n}\n```\n\n## License\n\nApplying the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya-nakayasu%2Fcordova-plugin-cache-delete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya-nakayasu%2Fcordova-plugin-cache-delete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya-nakayasu%2Fcordova-plugin-cache-delete/lists"}