Skip to content

Records Delete

asaweero edited this page Aug 22, 2017 · 5 revisions

Allows you to delete records from the project.

Required Parameters

  • records: an array of record IDs to delete.

Optional Parameters

  • arms: An array of arms you wish to delete.

Return Value

  • Returns the number of records deleted.

Method Usage

var params = {
   records: recs
};

redcap.records.importRecords (params, function (err, res) {
      // error containts oprtional errors
      if (err) {
          // handle error
      }
      else {
          // res is return value
          console.log (res);
      }
}