Error when removing assets using API

Hello,

when we run remove asset API for images, asset gets removed but API returns this error:

For PDF files removing assets using API still doesn’t work even after upgrading to version 1.9.6.

Please help me with this.

Thank you!