Root.DeleteCache Property
| Explanation | Deletes the cache indicated by the URI. It is not possible to delete a cache generated from a server other than the one that downloaded the CRS file that called the DeleteCache method. The URI cannot specify the protocol (http: //) and host name, and even if it is included, it will be ignored. This is a constraint designed to prevent unintentional deletion of the cache used by another application. One thing to note about this constraint is the cache control of the image file. Image files loaded by URL into ImageLabel objects etc. are also cached, but if the image file is downloaded from a server different from the application, there is no way to remove the cache of that image file from the script. | |
| Call format | //.DeleteCache( [ URI ] ) | |
| Return value | None | |
| Arguments | String URI | Specify the URI to delete. If omitted, all caches from the server that downloaded the CRS file that called the DeleteCache method will be deleted. If * (asterisk) is specified at the end of the URI, all prefix-matching URLs will be deleted. The cache to be deleted is determined by the prefix match in the character string comparison of the URL, so the directory name and file name are not distinguished. Added since Ver.4.0.0, Mobile Ver.3.0.0 |
| Exception | None | |
| Example of use | | |
| Related item | cachedate method | |