Check out example codes for "thymeleaf form delete method". It will help you in understanding the concepts better.
Code Example 1
<form action="#" th:action="@{'/delete/{id}'(id=${foo.id})}" th:method="delete" >
<input type="hidden" name="_method" value="delete" />
<button type="submit" id="submitButton"> </button>
</form>
Learn ReactJs, React Native from akashmittal.com