If you delete a document that is connected to a bot, in the documents tab, its not deleted from the bot. you need to delete it from the bot as well
If you delete it from the bot, it stays in the documents. Meaning you need to delete the document twice