どうも!スカーレット坊やです!
今回はXAMPPにインストールされているWordPressを確実に消去する方法です! 中途半端に消すと、データベースが残ったりと色々エラーの原因を作ることになりかねません。
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
ちゃんとした知識でしっかり運用することは、長くトラブルを起こさないようにする秘訣だね!
では早速行ってみましょう!
XAMPPのアンインストール、削除すべきは2つのみ!
この2つさえちゃんと消してしまえばアンインストールは完了です。
- WordPressの本体フォルダ
- データベースのフォルダ
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
じゃあ早速この2つの消し方を見ていこう!
![](https://s-carlett.com/wp-content/uploads/2022/09/1663332451661357.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1663332451661357.jpg)
まずはXAMPPの操作パネル、右側にある「Explorer」をクリックしてフォルダを開こう。
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451689595-1.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451689595-1.jpg)
「htdocs」と「mysql」にそれぞれ消すべき物があるので順に消していきましょう。
WordPressを削除していく
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451711097.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451711097.jpg)
まずは htdocsフォルダの中のWordPressフォルダである「wp-02」を削除。この名前は各々つけていると思うので、自分がつけた名前のWordPressです。
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
もし消しちゃうのが不安ならどこかへリムーブしてもいいよ!
これでWordPressの削除は完了です
データベースを削除しよう
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451736184.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451736184.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451750380-1.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451750380-1.jpg)
mysqlフォルダ → date → データベースを選択して「削除」
※ここではwp-02を削除します。
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
これでデータベースの削除も完了しました、これでWordPressの消去は完了です!
データベースを探そう
自分の作ったデータベースが分からない時のデータベースの探し方は
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451804178.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451804178.jpg)
削除したいWordPress「wp-02」フォルダの中にある wp-config.phpをテキストエディタで開こう。
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451845852.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451845852.jpg)
このフレーズを探し出してデータベース名を確認 wp-02 という名前です。WordPressと同じ名前になっていますね。
データベース名とフォルダ名が違っていた場合
この場合はphpMyAdminを使って調べていきましょう
![](https://s-carlett.com/wp-content/uploads/2022/09/1662452458111.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662452458111.jpg)
MySQLの「Admin」ボタンをクリック
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451912432.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451912432.jpg)
phpMyAdminへログインしよう
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451957489.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451957489.jpg)
WordPressの名前を選択して…
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451998729.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662451998729.jpg)
操作ボタンをクリック。
![](https://s-carlett.com/wp-content/uploads/2022/09/1662452022253.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662452022253.jpg)
この赤文字をクリックする。
![](https://s-carlett.com/wp-content/uploads/2022/09/1662452040704.jpg)
![](https://s-carlett.com/wp-content/uploads/2022/09/1662452040704.jpg)
このポップアップが出るので、良ければOKをクリックしよう。
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
![](https://s-carlett.com/wp-content/uploads/2022/08/fabicon-150x150.png)
これでデータベースの削除は完了!
データベースの名前やWordPressの名前はきちっと覚えておこう。作業では出てこないので忘れがちだけど、トラブル対策がスムーズになるよ!
こちらも併せてぜひお読みください。
ついにXAMPPの記事を書き終えたな!
「坊やだからさ~はっはっは」
それではまた!
※ IDを指定してください。