deleteSubmission method

Future<void> deleteSubmission(
  1. String formPath,
  2. String submissionId
)

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');
  }
}