deleteRecord
This method is to delete one or more records.
The records will be deleted from the local computer, but also from the EMOTIV account of the user in the cloud, and from any computer where the user is logged in.
Your application cannot delete a record that was created by another application.
Deleting a record is irreversible. There is no way to recover a deleted record.
Parameters
Name | Type | Required | Description |
cortexToken |
| yes | A token returned by authorize. |
records |
| yes | An array of record ids. |
Result
The result is an object that includes these fields:
Name | Type | Description |
success |
| For each record you successfully deleted, this array contains an object that includes the record id. |
failure |
| For each record that couldn't be deleted, this array contains an object that describes the error. |
In case of success, you get an object with these fields:
Name | Type | Description |
recordId |
| The id of the record that was successfully deleted. |
In case of failure, you get an object with these fields:
Name | Type | Description |
recordId |
| The id of the record that couldn't be deleted. |
code |
| The error code. |
message |
| The error message. |
Examples
Deleting two records, including one that has an invalid id.
Last updated