# Nexus 3 rest api for delete asset returns 405 error

**URL:** <https://community.sonatype.com/t/nexus-3-rest-api-for-delete-asset-returns-405-error/9103>\
**Category:** Sonatype Nexus Repository\
**Created:** [August 11, 2022, 9:22am UTC](https://community.sonatype.com/t/nexus-3-rest-api-for-delete-asset-returns-405-error/9103 "2022-08-11T09:22:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![orik318](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@orik318](https://community.sonatype.com/u/orik318)\
**Post date:** [August 11, 2022, 9:22am UTC](https://community.sonatype.com/t/nexus-3-rest-api-for-delete-asset-returns-405-error/9103/1 "2022-08-11T09:22:48Z")

</div>

Hi  
we are getting error 405 when trying to delete an asset (raw) we just located  
we are following the documentation api.

curl -v -u “xxx:xxx” -X DELETE “[http://xyz:8081/sevice/rest/v1/assets/dG1vX3JlcG9zaXRvcnlfaGVsbTo3ZTdlNmQ1ZGY3ODE5MGIwZDk2YWU1NTQ0MGVkYTgxYw](http://xyz:8081/sevice/rest/v1/assets/dG1vX3JlcG9zaXRvcnlfaGVsbTo3ZTdlNmQ1ZGY3ODE5MGIwZDk2YWU1NTQ0MGVkYTgxYw)”  
% Total % Received % Xferd Average Speed Time Time Time Current  
Dload Upload Total Spent Left Speed  
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0\* Trying 10.75.41.25:8081…

- TCP\_NODELAY set
- Connected to xyz port 8081 (#0)
- Server auth using Basic with user ‘xxx’

> DELETE /sevice/rest/v1/assets/dG1vX3JlcG9zaXRvcnlfaGVsbTo3ZTdlNmQ1ZGY3ODE5MGIwZDk2YWU1NTQ0MGVkYTgxYw HTTP/1.1  
> Host: xxx:8081  
> Authorization: Basic ZG9ja2VycHVzaDpkb2NrZXJwdXNo  
> User-Agent: curl/7.65.3  
> Accept: _/_

- Mark bundle as not supporting multiuse  
\< HTTP/1.1 405 Http method DELETE is not supported by this URL  
\< Date: Thu, 11 Aug 2022 09:10:14 GMT  
\< Server: Nexus/3.25.1-04 (OSS)  
\< X-Content-Type-Options: nosniff  
\< Content-Length: 0

we are looking for a way to delete raw artifacts programmatically

regards

Ori

---

<div class="post-metadata">

**Author:** ![orik318](https://avatars.discourse-cdn.com/v4/letter/o/8edcca/32.png) [@orik318](https://community.sonatype.com/u/orik318)\
**Post date:** [August 11, 2022, 10:22am UTC](https://community.sonatype.com/t/nexus-3-rest-api-for-delete-asset-returns-405-error/9103/2 "2022-08-11T10:22:07Z")

</div>

issue resolved - I’m able to delete the component , the asset is also removed. can it be that I was trying to delete the component ID using the asset API ?
