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


    • 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?


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

OneDrive Admins can also view the OneDrive Tech Community, Help for OneDrive for Admins.

Microsoft virtual support agent icon

Contact Support
If you still need help, contact support through your browser or shake your mobile device while you're in the OneDrive app.

OneDrive Admins can contact Microsoft 365 for business support.

Office 365 community forums

Got feedback?
You can suggest features you’d like to see us add to OneDrive. Go to How do I give feedback on Microsoft Office? for more information.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!