How to delete the gmail sent mails after someone reads
Unfortunately, there is no built-in feature in Gmail that allows you to automatically delete sent emails after someone reads them. However, there are a few workarounds you can use to achieve a similar effect:
Method 1: Use a third-party add-on
There are several third-party add-ons available that can help you achieve this functionality. For example:
- Sanebox: This add-on uses machine learning to identify and delete emails that have been read by the recipient. It also offers other features like email filtering and organization.
- Boomerang: This add-on allows you to set up rules to automatically delete emails after a certain period of time or when they are marked as read.
- SaneBlackHole: This add-on is similar to Sanebox, but it's specifically designed to delete emails after they've been read.
Method 2: Use a script
You can use Google Apps Script to create a script that deletes sent emails after they've been read. Here's an example script you can use as a starting point:
function deleteReadSentEmails() {
var threads = GmailApp.searchThreads("is:read is:sent");
for (var i = 0; i < threads.length; i++) {
var thread = threads[i];
var messages = thread.getMessages();
for (var j = 0; j < messages.length; j++) {
var message = messages[j];
GmailApp.deleteMessage(message.getId());
}
}
}
This script searches for threads that have been marked as read and sent, and then deletes the individual messages within those threads.
Method 3: Use a label and a filter
You can create a label for your sent emails and then set up a filter to automatically delete emails that have been labeled and marked as read. Here's how:
- Create a new label in Gmail called "Read Sent Emails".
- Set up a filter to apply the label to sent emails that have been marked as read. You can do this by going to Settings > Filters and Blocked Addresses, and then creating a new filter with the following criteria:
- Apply the label "Read Sent Emails" to messages that have been marked as read.
- Apply the label "Sent" to messages that have been sent.
- Once the filter is set up, you can then set up another filter to delete emails that have been labeled as "Read Sent Emails". You can do this by creating a new filter with the following criteria:
- Delete messages that have the label "Read Sent Emails".
Note that these methods may not be foolproof, as there may be cases where the recipient doesn't mark the email as read, or where the email is deleted or archived instead of being marked as read. Additionally, these methods may not work for all types of emails, such as emails sent to groups or emails that are not marked as read by the recipient.