# The DELETE method is not supported spring boot

**URL:** <https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006>\
**Category:** Flowable Application\
**Created:** [December 6, 2019, 12:28pm UTC](https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006 "2019-12-06T12:28:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![keltouma](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@keltouma](https://forum.flowable.org/u/keltouma)\
**Post date:** [December 6, 2019, 12:28pm UTC](https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006/1 "2019-12-06T12:28:06Z")

</div>

using Angular 8 and Springboot app… passing value through JSON getting error: Request delete doesn’t supported here is the error :

**This application has no explicit mapping for /error, so you are seeing this as a fallback.**

**Thu Dec 05 22:55:04 WET 2019 There was an unexpected error (type=Method Not Allowed, status=405). Request method ‘GET’ not supported**  
Here’s the code :  
RequestMapping(value="/empdelete/{id}", method=RequestMethod.DELETE)  
public void deleteEmployee( PathVariable(“id”) Long id) {  
collaborateurRepository.deleteById(id);

```
    }
```

---

<div class="post-metadata">

**Author:** ![keltouma](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@keltouma](https://forum.flowable.org/u/keltouma)\
**Post date:** [December 6, 2019, 12:29pm UTC](https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006/2 "2019-12-06T12:29:09Z")

</div>

i just delete @ cause they won’t to share it so i delete it

---

<div class="post-metadata">

**Author:** ![wwitt](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/wwitt/32/706_2.png) [@wwitt](https://forum.flowable.org/u/wwitt)\
**Post date:** [December 6, 2019, 3:13pm UTC](https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006/3 "2019-12-06T15:13:54Z")

</div>

I don’t think I’ve seen this issue with directly spring boot. Are your Angular app and Springboot app served from the same host and port? Are there any proxies in between the user and the Springboot app that might be converting the call (Ive seen this before)?

If you uses three back-ticks “`” before and after a code block it will format it correctly:

```java
@RequestMapping(value="/empdelete/{id}", method=RequestMethod.DELETE)
public void deleteEmployee( PathVariable(“id”) Long id) {
    collaborateurRepository.deleteById(id);
}

```

---

<div class="post-metadata">

**Author:** ![keltouma](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@keltouma](https://forum.flowable.org/u/keltouma)\
**Post date:** [December 6, 2019, 10:33pm UTC](https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006/4 "2019-12-06T22:33:34Z")

</div>

I solved this issue, by adding GET method cause I just recuperate id of employee entity so I should also add it to method  
method={RequestMethod.DELETE, RequestMethod.GET}  
And thanks for your answer

---

<div class="post-metadata">

**Author:** ![joelbeya](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joelbeya/32/2088_2.png) [@joelbeya](https://forum.flowable.org/u/joelbeya)\
**Post date:** [November 11, 2020, 3:09am UTC](https://forum.flowable.org/t/the-delete-method-is-not-supported-spring-boot/5006/5 "2020-11-11T03:09:44Z")

</div>

This work perfectly for me and help me to debug my application efficiently. Thank you!
