deleteFiles method
Implementation
Future<http.Response> deleteFiles(List<String> filePaths) async {
List<String> updatedPaths = filePaths.map((path) {
return '${Constants.orgId}/${Constants.workspaceId}/$path';
}).toList();
String encodedPaths = jsonEncode(updatedPaths);
var uri = Uri.parse('$apiHost/v1/filehandling/delete?paths=$encodedPaths');
final response = await http.delete(
uri,
headers: {'Content-Type': 'application/json'},
);
return response;
}