How to programmatically add a deferred operation to delete PersonHasQERResource?

We have a use case to to automatically remove a Resource assignment a week after it was assigned.  I have tried to use a deferred block similar to this forum:  RE: Create a Deferred Event Generation Operation from a Script but I can't find an option to create a deferred operation to "Delete" an entry in the PersonHasQERResource.  Any thoughts if there are ways to do this?  Thanks in advance!