Generally speaking, most Mac applications are separate bundles that contain the executable and any associated resources for the app, and therefore users can easily remove any unwanted software (if they are installed properly) from their Macs. In normal cases Mac users just need to simply drag and drop the target app to the Trash and then empty the Trash to perform the standard uninstallation.
Uninstalling applications in macOS/Mac OS X is quite different from that in Windows operating system. Things you should know about Mac app removal: How to uninstall OneDrive on Mac computer? If you encounter problem when trying to delete OneDrive as well as its associated components, read through this removal tutorial and learn about how to perfectly remove any unwanted applications on your Mac. OneDrive Removal Tutorial - How to Easily Uninstall OneDrive