mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-15 16:22:57 +00:00
* Sets `"useCodeBlocks": true` * Adds a post-processing script `nodejs/typedoc_post_process.js` that puts the parameter description on the same line as the parameter name, like it is in our Python docs. This makes the text hierarchy clearer in those sections and also makes the sections shorter.
40 lines
671 B
Markdown
40 lines
671 B
Markdown
[**@lancedb/lancedb**](../README.md) • **Docs**
|
|
|
|
***
|
|
|
|
[@lancedb/lancedb](../globals.md) / OptimizeOptions
|
|
|
|
# Interface: OptimizeOptions
|
|
|
|
## Properties
|
|
|
|
### cleanupOlderThan
|
|
|
|
```ts
|
|
cleanupOlderThan: Date;
|
|
```
|
|
|
|
If set then all versions older than the given date
|
|
be removed. The current version will never be removed.
|
|
The default is 7 days
|
|
|
|
#### Example
|
|
|
|
```ts
|
|
// Delete all versions older than 1 day
|
|
const olderThan = new Date();
|
|
olderThan.setDate(olderThan.getDate() - 1));
|
|
tbl.cleanupOlderVersions(olderThan);
|
|
|
|
// Delete all versions except the current version
|
|
tbl.cleanupOlderVersions(new Date());
|
|
```
|
|
|
|
***
|
|
|
|
### deleteUnverified
|
|
|
|
```ts
|
|
deleteUnverified: boolean;
|
|
```
|