Delete Files V2
token <token>
, corresponds to temporary access tokens.
The source of the file. If a list is provided, the query will return files from any of the sources in the list.
The name of the file. The query will return files with names that contain this string.
Tags to filter by. Supports logical AND and OR operations. Input should be like below:
{
"OR": [
{
"key": "subject",
"value": "holy-bible",
"negate": false
},
{
"key": "person-of-interest",
"value": "jesus christ",
"negate": false
},
{
"key": "genre",
"value": "fiction",
"negate": true
}
{
"AND": [
{
"key": "subject",
"value": "tao-te-ching",
"negate": true
},
{
"key": "author",
"value": "lao-tzu",
"negate": false
}
]
}
]
}
For a single filter, the filter block can be placed within either an "AND" or "OR" block.
The IDs of the files. The query will return files with these IDs.
The external file IDs of the files. The query will return files with these external file IDs.
The sync statuses of the files. The query will return files with these sync statuses.
The organization user data source IDs of the files. The query will return files with these organization user data source IDs.
The embedding generators of the files. The query will return files with these embedding generators.
If true, the query will return only root files. Cannot be true if parent_file_ids or include_all_children is specified.
If true, the query will return all descendents of the specified parent_file_ids.
If true, the query will return only files that have not been synced yet.
Filter by request ID(s) which were used to sync the files
The error message of the file. The query will return files with error messages that contain this string. To search for files with no error message, use an empty string.
If true, the query will return containers in the response. Containers are files that group other files together and have no content themselves. Default behavior is to include containers.
The external URLs of the files. The query will return files with these external URLs.
Filter files based on their type at the source (for example help center tickets and articles)
Whether or not to delete all data related to the file from the database, BUT to preserve the file metadata, allowing for
resyncs. By default preserve_file_record
is false, which means that all data related to the file as well as its metadata will be deleted. Note that
even if preserve_file_record
is true, raw files uploaded via the uploadfile
endpoint still cannot be resynced.
Authorizations
token <token>
, corresponds to temporary access tokens.
Body
Whether or not to delete all data related to the file from the database, BUT to preserve the file metadata, allowing for
resyncs. By default preserve_file_record
is false, which means that all data related to the file as well as its metadata will be deleted. Note that
even if preserve_file_record
is true, raw files uploaded via the uploadfile
endpoint still cannot be resynced.