Why doesn’t wp_delete_post allow trashing for custom types?

Have you tried wp_trash_post?

This seems like the perfect fit for your purpose. It will only permanently delete posts if you have your trash disabled, or added define('EMPTY_TRASH_DAYS', 0); to your wp-config.php file.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)