Macでファイルを削除すると、 Finderでファイルを非表示にするだけになります。それを削除して関連するディスク領域を解放するには、ゴミ箱(Trash)を空にする必要があります。Controlキーを押しながらゴミ箱(Trash)アイコンをクリックし、[ゴミ箱を空にする(Empty Trash)]オプションを選択するのが、これを行う最も速い方法です。
ただし、ゴミ箱(Trash)内のコンテンツを完全に削除することは必ずしも簡単ではなく、エラーが発生する可能性があります。そのため、問題が発生した場合は、代わりにターミナル(Terminal)を使用してmacOSのゴミ箱(Trash)をすばやく空にすることができます。完全な手順は以下にあります。

(Delete)ターミナルを使用してMac(Mac Using Terminal)のゴミ箱(Trash)を削除する(macOS El (Later)Capitan(El Capitan)以降)
macOS 10.11 El Capitan以降(Big SurやMontereyなど)を実行している(Monterey)Macを使用している場合は、ターミナル(Terminal)を使用してゴミ箱(Trash)をすばやく空にすることができます。
1.ランチパッドを開き、[(Launchpad)その他(Other)] >[ターミナル(Terminal)]を選択します。

2.次のコマンドを入力します。
sudo rm -r
注:(Note:)コマンドはまだ実行しないでください。

3.スペース(Space)キーを1回押して、コマンドの最後にスペースを1つ追加します。それを行うことが不可欠です。そうでない場合、コマンドは失敗します。
4.ゴミ箱(Trash)を開きます。
5.コマンド(Command)キーを押しながら、削除するファイルを選択します。すべてを削除する場合は、Command + Aを押して、すべてのファイルとフォルダーを即座に強調表示します。

6.強調表示されたファイルをゴミ箱(Trash)にドラッグします。削除するアイテムの数によっては、ターミナル(Terminal)に複数のファイルパスが表示される場合があります。
7.Enterキー(Enter)を押します。
8.管理者パスワードを入力します。

9.Enterキー(Enter)を押します。ターミナルは指定されたアイテムを(Terminal)ゴミ箱(Trash)から削除します。確認は届きませんので、再確認することをお勧めします。
ターミナル(Terminal)が特定のファイルの削除に失敗した場合、f(force)オプションを追加すると、(f)権限の競合によって引き起こされる問題が上書きされます。手順2でsudorm- rf(sudo rm -rf)と入力します。
ごみ箱を空にする(Trash)と、ファイルが完全に削除されます(MacでTime Machineを設定して(set up Time Machine on your Mac)いない場合)。したがって(Hence)、毎回削除する前に確認したい場合は、i(対話型)オプションを使用できます(例:sudo rm -ri)。
(Delete)ターミナルを使用してMac(Mac Using Terminal)のゴミ箱を(Trash)削除する(macOS Yosemite以前(Earlier))
macOS 10.10 Yosemite以前を実行しているMacでは、(Mac)ターミナル(Terminal)を使用してゴミ箱(Trash)を空にすることは比較的簡単です。
1.ランチパッドを開き、[(Launchpad)その他(Other)] >[ターミナル(Terminal)]を選択します。
2.次のコマンドを入力します。
sudo rm -rf ~/.Trash/*
3.Enterキー(Enter)を押します。
4.管理者パスワードを入力します。
5.Enterキー(Enter)を押します。
ゴミ箱(Trash)に問題のあるファイルを削除(Delete Problematic Files)する別の方法(Ways)
ターミナル(Terminal)を使用してゴミ箱(Trash)を削除するのは簡単です。しかし、それも不便です。特定のファイルが原因でmacOSのGUI (グラフィカルユーザーインターフェイス)を使用してごみ箱(Trash)を空にできない場合は、次回、以下のポインターを実行してください。
アイテムを個別に削除する(Delete Items Individually)
問題のあるファイルやフォルダを個別に削除してみてください。これを行うには、ゴミ箱(Trash)を開き、問題のあるアイテムをcontrolキーを押しながらクリックして、[すぐに削除]( Delete Immediately)を選択します。

ファイルのロックを解除し、権限を確認します(Unlock Files and Check Permissions)
macOSにより、ロックされたファイルまたはフォルダを削除できない場合があります。ロックを解除してみてください。これを行うには、ゴミ箱(Trash)内のアイテムをcontrolキーを押しながらクリックし、 [情報(Get Info)を見る]を選択します。次に、[ロック](Locked)の横のチェックボックスをオフにします。

その間、[共有とアクセス許可](Sharing & Permissions)セクションまでスクロールして、ユーザーアカウントの[特権](Privilege)を[読み取りと書き込み]に設定することもできます。(Read & Write)管理者権限がない場合は、それができない場合があります。
関連プログラムを強制終了する(Force-Quit Relevant Programs)
ファイルまたはフォルダを完全に削除できない可能性のあるプログラムをすべて終了してみてください。これを行うには、MacのDock(Dock)を介してプログラムのアイコンをcontrolキーを押しながらクリックし、[終了(Quit)]を選択します。たとえば、Pagesドキュメントの削除で問題が発生した場合は、 (Pages)Pagesアプリを完全に終了します。

さらに、関連するプログラムがスタックしていないかどうかを確認することもできます。これを行うには、Appleメニューを開き、[強制終了(Force-quit)]を選択します。プログラムがリスト内に表示されている場合は、アイテムを選択して[強制終了](Force Quit)を選択します。macOSでアプリを強制終了する他の方法(other ways to force-quit apps in macOS)は次のとおりです。
Macを再起動します(Restart Your Mac)
Macを再起動すると、バグ、グリッチ、競合を解決してゴミ箱(Trash)を空にすることもできなくなります。
Appleメニューを開き、 [再起動(Restart)]を選択するだけです。次に、[ログインし直すときにウィンドウを再度開く]の横のボックスをオフのままにして、 (Reopen windows when logging back in)[再起動](Restart)を選択します。

競合するスタートアッププログラムを無効にする(Disable Conflicting Startup Programs)
ゴミ箱(Trash)を正常に空にするのに問題が続く場合は、macOSと一緒に起動する競合するプログラムがある可能性があります。
これを削除するには、Appleメニューを開き、[システム環境設定](System Preferences) >[ユーザーとグループ(Users & Groups)]を選択します。次に、サイドバーでユーザーアカウントを選択し、[ログインアイテム(Login Items)]タブに切り替えます。その後、特定のファイル形式で問題を引き起こす可能性のあるアプリを選択して削除します。

Macをセーフモードで(Booting your Mac in Safe Mode)起動すると、問題の原因となる問題のある、または大ざっぱなスタートアッププログラムや拡張機能を特定するのにも役立ちます。
ごみを出す
macOSでターミナル(Terminal)を使用してゴミ箱(Trash)を空にすることはできますが、可能であれば、グラフィカルユーザーインターフェイスに固執することをお勧めします。内容を強制的に削除するのではなく、Macのゴミ箱内のファイルを削除できない原因を時間をかけて理解することで、今後同じ問題に対処する必要がなくなる可能性があります。(Trash)
そうは言っても、後で回復したいファイルやフォルダを完全に削除してしまう場合は、TimeMachineを使用して失われたアイテムを復元する(restore the lost items using Time Machine)ことを忘れないでください。
How to Quickly Empty the Trash in macOS Using Terminal
When you delete a file on a Maс, you onlу end up hiding it in Finder. To remove it and free up the аssociated disk space, you must empty the Trash. Control-clicking the Trash icon and picking the Empty Trash option is the fastest way to do that.
However, permanently getting rid of the contents within the Trash isn’t always that easy and may result in errors. So if you run into any trouble, you can quickly empty the Trash in macOS using Terminal instead. You’ll find the complete procedure below.

Delete the Trash in Mac Using Terminal (macOS El Capitan and Later)
If you use a Mac running macOS 10.11 El Capitan or later (such as Big Sur or Monterey), you can quickly empty the Trash using Terminal.
1. Open the Launchpad and select Other > Terminal.

2. Type the following command:
sudo rm -r
Note: Do not run the command yet.

3. Press the Space key once to add a single space to the end of the command. It’s essential to do that. If not, the command will fail.
4. Open the Trash.
5. Select the files you want to delete while holding down the Command key. If you want to remove everything, press Command + A to highlight all files and folders instantly.

6. Drag the highlighted files into the Trash. Depending on how many items you want to delete, multiple file paths may show up in Terminal.
7. Press Enter.
8. Type in your administrator password.

9. Press Enter. Terminal will delete the specified items from the Trash. You won’t receive a confirmation, so it’s best to double-check.
If Terminal fails to delete a specific file or files, adding the f (force) option will override issues caused by conflicting permissions. Type sudo rm -rf in step 2.
Emptying the Trash permanently deletes the files (unless you’ve set up Time Machine on your Mac). Hence, if you prefer confirmation before deleting each time, you can use the i (interactive) option—e.g., sudo rm -ri.
Delete the Trash in Mac Using Terminal (macOS Yosemite and Earlier)
On a Mac running macOS 10.10 Yosemite or earlier, emptying the Trash using Terminal is relatively uncomplicated.
1. Open the Launchpad and select Other > Terminal.
2. Type the following command:
sudo rm -rf ~/.Trash/*
3. Press Enter.
4. Type in your administrator password.
5. Press Enter.
Alternative Ways to Delete Problematic Files in Trash
Deleting the Trash using Terminal is quick. But it’s also inconvenient. If you can’t empty the Trash using the GUI (graphical user interface) in macOS due to a specific file or files, run through the pointers below the next time.
Delete Items Individually
Try deleting any problematic files or folders individually. To do that, open the Trash, control-click the offending item, and select Delete Immediately.

Unlock Files and Check Permissions
macOS may prevent you from deleting a locked file or folder. Try unlocking it. To do that, control-click the item within the Trash and select Get Info. Then, uncheck the box next to Locked.

While you’re at it, you may also want to scroll down to the Sharing & Permissions section and set Privilege to Read & Write for your user account. You may not be able to do that if you don’t have administrative privileges.
Force-Quit Relevant Programs
Try quitting any programs that might be preventing you from permanently deleting a file or folder. You can do that by control-clicking the program’s icon via the Mac’s Dock and selecting Quit. For example, if you have trouble removing a Pages document, fully exit the Pages app.

Additionally, you might want to check if the relevant program is stuck. To do that, open the Apple menu and select Force-quit. If the program appears within the list, select the item and choose Force Quit. Here are other ways to force-quit apps in macOS.
Restart Your Mac
Restarting your Mac can also help resolve bugs, glitches, and conflicts preventing you from emptying the Trash.
Just open the Apple menu and select Restart. Then, leave the box next to Reopen windows when logging back in unchecked and choose Restart.

Disable Conflicting Startup Programs
If you continue to have trouble emptying the Trash normally, you probably have a conflicting program that boots alongside macOS.
To remove it, open the Apple menu and select System Preferences > Users & Groups. Then, select your user account on the sidebar and switch to the Login Items tab. Follow that by selecting and removing any apps that might cause issues with a specific file format.

Booting your Mac in Safe Mode can also help you identify problematic or sketchy startup programs and extensions that cause issues.
Take Out the Trash
Despite being able to empty the Trash using Terminal in macOS, it’s best to stick to the graphical user interface, if possible. Taking the time to figure out what prevents you from deleting files within Mac’s Trash rather than force-deleting its contents may help you avoid having to deal with the same problem going forward.
That being said, if you end up permanently removing files and folders you later want to recover, don’t forget to restore the lost items using Time Machine.