How to remove an Outlook .pst data file from OneDrive

How to remove an Outlook .pst data file from OneDrive

When you add a POP3 email account to Outlook or create archives or backup files from any of your accounts in Outlook, an Outlook Data File (.pst) may be created within your OneDrive.

If this data file becomes large it can slow down your OneDrive sync and may show "Processing changes" or "A file is in use".

OneDrive "file in use" dialog

Move your Outlook .pst data file from OneDrive to another folder

  1. Close Outlook and wait for OneDrive sync to complete.

  2. Open File Explorer and browse to C:\Users\[username]\OneDrive\Documents\Outlook Files.

    Note: If the .pst file is not here, open Outlook, right-click the account which has the .pst you wish to move, and select Data File Properties > Advanced to see the full path of the filename.

  3. Copy the .pst file from the OneDrive folder to a new or existing location on your PC which is not in your OneDrive (e.g. C:\My Outlook Files).

  4. Give the copied file a new name (e.g. myname@domain-copy.pst).

  5. Restart Outlook.

  6. Select File then Account Settings:

    Outlook account settings button

  7. In the Email tab, choose the account name and then select Change Folder:

    Outlook account settings dialog

    Note: If you don't see Change Folder, then the email account you have selected does not have a .pst file.

  8. Choose the account and select New Outlook Data file:

    Outlook email delivery location dialog

  9. Browse to the location of your newly renamed copy .pst file, select it, and choose OK to return to the Email Accounts list.

  10. On the Data Files tab, choose the data file location which includes OneDrive and select Remove and Yes to disconnect the file.
     
    Outlook data files dialog

    Notes: 

    • No email data will be lost by selecting Remove, it is just disconnected from your Outlook account. It can be re-added if necessary.

    • You cannot remove a Default data file. Choose another data file and Set as Default first.

  11. If you want to move or delete the OneDrive copy of the .pst file, you will need to close Outlook first.

Learn more

Find and transfer Outlook data files from one computer to another

Need more help?

Online

Get online help
See more support pages for OneDrive and OneDrive for Business.
For the OneDrive mobile app, see Troubleshoot OneDrive mobile app problems.

Email Support icon

Email support
If you still need help, shake your mobile device while you're in the OneDrive app or email the OneDrive support team. To contact OneDrive for Business support from your PC or Mac, select the OneDrive icon in the notification area or menu bar, then select More > Send feedback > I don't like something.

OneDrive for Business Admins can also view the OneDrive for Business Tech Community, Help for OneDrive for Business Admins, or contact Office 365 for business support.

Office 365 community forums

Got feedback?
OneDrive UserVoice is your place to suggest the features you’d like to see us add to OneDrive. While we can’t guarantee any specific features or timelines, we will respond to every suggestion that gets at least 500 votes.

Go to the OneDrive UserVoice.

Expand your Office skills
Explore training
Get new features first
Join Office Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×