Delete data
These docs cover Amplify Gen 1. For new web apps, we recommend the latest AWS Amplify, with a simplified CLI and native integrations for databases, storage, and AI models. Get started with the latest AWS Amplify.
DELETE requests
Future<void> deleteTodo() async {try { final restOperation = Amplify.API.delete('todo/1'); final response = await restOperation.response; safePrint('DELETE call succeeded: ${response.decodeBody()}');} on ApiException catch (e) { safePrint('DELETE call failed: $e');}}