Delete data
DELETE requests
1Future<void> deleteTodo() async {2 try {3 const options = RestOptions(path: '/todo/1');4 final restOperation = Amplify.API.delete(restOptions: options);5 final response = await restOperation.response;6 print('DELETE call succeeded');7 print(response.body);8 } on ApiException catch (e) {9 print('DELETE call failed: $e');10 }11}