Local Plugin - how to remove properly

This is a simple question, yet I couldn’t find answer anywhere.
How can I properly remove local plugin? Is it enough to delete local plugin folder, and Strapi yarn build after that, or is there some command line solution?
Just deleting local plugin folder, and rebuilding after that, looks to me like a surgery with axe.