Empty/ Move to Trash through API

Hello,

Is there a way to move things to trash and empty the trash through the API?

Thanks!
Francine