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

Page updated Apr 29, 2024

Delete data

Amplify Flutter v0 is now in Maintenance Mode until July 19th, 2024. This means that we will continue to include updates to ensure compatibility with backend services and security. No new features will be introduced in v0.

Please use the latest version (v1) of Amplify Flutter to get started.

If you are currently using v0, follow these instructions to upgrade to v1.

DELETE requests

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