Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Page updated Apr 29, 2024

Delete data

DELETE requests

Future<void> deleteTodo() async {
try {
final restOperation = Amplify.API.delete('todo/1');
final response = await restOperation.response;
print('DELETE call succeeded: ${response.decodeBody()}');
} on ApiException catch (e) {
print('DELETE call failed: $e');
}
}