case 'delete':
    return (id) => {
      return apiService
        .delete(`/${resource}/${id}`)
        .then(({ data }) => data);