I’m not seeing any issues with deleting direct messages by ID. Are you sure that the ID you’re specifying belongs to a direct message that exists? Make sure you’re using id_str to retrieve the identifiers, as our direct message IDs can go to 64-bit, which munges the integer in some languages.