The purgeExpendableFiles method of the ClientStore Class contains the following signatures:
purgeExpendableFiles(long spacerequired, int flags)
purgeExpendableFiles(long spacerequired)
purgeExpendableFiles()
Searches for files that are marked as expendable. If files are found and the total space used by the found files exceeds spacerequired, the found files are deleted. A file can be marked expendable by using the markFileAsExpendable method or by creating the file with the OPEN_FL_EXPENDABLE flag.
public boolean purgeExpendableFiles(long spacerequired, int flags) throws IOException;
Returns true if files were deleted; otherwise, returns false.
spacerequired | The number of bytes needed. If spacerequired is set to 0, all the files marked as expendable are deleted. |
flags | A value that indicates the storage area from which to delete stgfilename. It can be either or both of the STORE_FL_LOCAL and STORE_FL_ROAMING flags. |
IOException if an error occurs while deleting the files.
Searches for files that are marked as expendable. If files are found and the total space used by the found files exceeds spacerequired, the found files are deleted. A file can be marked expendable by using the markFileAsExpendable method or by creating the file with the OPEN_FL_EXPENDABLE flag.
public boolean purgeExpendableFiles(long spacerequired) throws IOException;
Returns true if files were deleted; otherwise, returns false.
spacerequired | The number of bytes needed. If spacerequired is set to 0, all the files found are deleted. |
IOException if an error occurs while deleting the files.
Deletes all files that are marked as expendable. Files are marked expendable by using the markFileAsExpendable method or by creating them with the OPEN_FL_EXPENDABLE flag.
public boolean purgeExpendableFiles() throws IOException;
Returns true if files were deleted; otherwise, returns false.
IOException if an error occurs while deleting the files.