deleteSubmission method
Deletes a submission.
formPath is the full path to the form.
submissionId is the ID of the submission to delete.
Throws SubmissionException on error.
Implementation
Future<void> deleteSubmission(String formPath, String submissionId) async {
try {
final url = ApiEndpoints.deleteSubmission(formPath, submissionId);
await client.dio.delete(url);
} catch (e) {
throw SubmissionException('Failed to delete submission: $e');
}
}