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.
The result is an object that includes these fields:
In case of success, you get an object with these fields:
In case of failure, you get an object with these fields:
Deleting two records, including one that has an invalid id.
Name
Type
Required
Description
cortexToken
string
yes
A token returned by authorize.
records
array of strings
yes
An array of record ids.
Name
Type
Description
success
array of objects
For each record you successfully deleted, this array contains an object that includes the record id.
failure
array of objects
For each record that couldn't be deleted, this array contains an object that describes the error.
Name
Type
Description
recordId
string
The id of the record that was successfully deleted.
Name
Type
Description
recordId
string
The id of the record that couldn't be deleted.
code
number
The error code.
message
string
The error message.