# How to delete resource

**URL:** <https://community.openpbs.org/t/how-to-delete-resource/1760>\
**Category:** Users/Site Administrators\
**Created:** [September 7, 2019, 5:02am UTC](https://community.openpbs.org/t/how-to-delete-resource/1760 "2019-09-07T05:02:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![daniel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/daniel/32/630_2.png) [@daniel](https://community.openpbs.org/u/daniel)\
**Post date:** [September 7, 2019, 5:02am UTC](https://community.openpbs.org/t/how-to-delete-resource/1760/1 "2019-09-07T05:02:41Z")

</div>

Hi

I trying to delete a resource but I’am getting this error:

$ qmgr -c “delete resource python”  
qmgr obj=python svr=default: Resource busy on job  
qmgr: Error (15174) returned from server

I already remove it from queue, node and sched\_config (with kill -HUP \<sched\_pid\>), but the error persists.

What I’am doing wrong?

Thanks

---

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [September 7, 2019, 5:44am UTC](https://community.openpbs.org/t/how-to-delete-resource/1760/2 "2019-09-07T05:44:01Z")

</div>

> [@daniel](#):
>
> I already remove it from queue, node and sched\_config (with kill -HUP \<sched\_pid\>), but the error persists.

- jobs in the history or reservation that might have used this resource. Hence you are getting this error.
- Stop the PBS Server services, edit the resourcedef and remove the line containing this resource
- Start the PBS Server service
