lib/mock/edit-resource.js
function deleteResource (req, res, next, dataStore) { // jshint ignore:line
  let resource = createResource(req);

  // Delete the resource
  dataStore.delete(resource, (err, deletedResource) => {
    // Respond with the deleted resource, if possible; otherwise, use the empty resource we just created.
    sendResponse(req, res, next, dataStore)(err, deletedResource || resource);
  });
}
function deleteResource (req, res, next, dataStore) { // jshint ignore:line
  let resource = createResource(req);

  // Delete the resource
  dataStore.delete(resource, (err, deletedResource) => {
    // Respond with the deleted resource, if possible; otherwise, use the empty resource we just created.
    sendResponse(req, res, next, dataStore)(err, deletedResource || resource);
  });
}
function deleteResource ( req , res , next , dataStore ) { // jshint ignore:line let resource = createResource ( req ) ; // Delete the resource dataStore . delete ( resource , ( err , deletedResource ) => { // Respond with the deleted resource, if possible; otherwise, use the empty resource we just created. sendResponse ( req , res , next , dataStore ) ( err , deletedResource || resource ) ; } ) ; }
Deletes the REST resource at the URL.
If the resource does not exist, then nothing happens.  No error is thrown.

@param   {Request}   req
@param   {Response}  res
@param   {function}  next
@param   {DataStore} dataStore
Deletes the REST resource at the URL . If the resource does not exist then nothing happens . No error is thrown .