Deletes a record with DELETE path/:id.
DELETE path/:id
Future<void> delete(Object id) async { final response = await router.delete<Map<String, dynamic>>('$path/$id'); if (response.isError) throw response.error!; }