If you accidentally delete a file or folder from your Media Library, you can recover it through the Recycle Bin.
To restore deleted files or folders:
Open your Library and click on the Recycle Bin icon at the top right.
Locate the file(s) or folder(s) you wish to restore.
Click on the Restore button next to the item(s).
Note: The restoration process may take a few moments, especially for larger files or folders.