nl_tokens: Delete several items from a service based on the given payload .
pl_tokens: async function deleteFn ( action , { getService } = { } ) { debug ( 'Action: DELETE' ) const { type , id , service : serviceId , endpoint } = action . payload const service = ( typeof getService === 'function' ) ? getService ( type , serviceId ) : null if ( ! service ) { return createUnknownServiceError ( type , serviceId , 'DELETE' ) } const data = prepareData ( action . payload ) if ( data . length === 0 ) { return createError ( ` ${ service . id } ` , 'noaction' ) } const endpointDebug = ( endpoint ) ? ` ${ endpoint } ` : ` ${ type } ${ id } ` debug ( 'DELETE: Delete from service \'%s\' at %s.' , service . id , endpointDebug ) const { response } = await service . send ( appendToAction ( action , { data } ) ) return ( response . <mask> === 'ok' ) ? { status : 'ok' } : response }