curl -X DELETE 'https://app.teable.cn/table/__tableId__/record?recordIds[]=rec123456&recordIds[]=rec789012' \
-H 'Authorization: Bearer __token__'
import { configApi, deleteRecords } from '@teable/openapi';
configApi({
endpoint: 'https://app.teable.cn',
token: '__token__',
});
await deleteRecords('__tableId__', ['rec123456', 'rec789012']);
const response = await fetch('https://app.teable.cn/table/__tableId__/record?recordIds[]=rec123456&recordIds[]=rec789012', {
method: 'DELETE',
headers: {
'Authorization': 'Bearer __token__'
}
});
console.log(response.status); // 200 if successful
import requests
response = requests.delete(
'https://app.teable.cn/table/__tableId__/record',
headers={
'Authorization': 'Bearer __token__'
},
params={
'recordIds': ['rec123456', 'rec789012']
}
)
print(response.status_code) # 200 if successful