Delete all items in Recycle Bin using javascript

Is there a way to batch delete all items in the recycle bin on the client side in SharePoint Online?

I’ve tried using javascript:emptyItems() in the browser but this appears to time out after removing about 2k items. I have 1.5 million items and growing and would like to empty all at once and have a quick and easy way to do this going forward. Is there a way to do this using JSOM, CSOM or REST API?

I’m open to anything which doesn’t involve central admin or server side access. Any direction would be appreciated.

A better way to Unrar to a certain folder and then delete source folder

Below works for UNRAR to a certain folder. “unrar e -r -o- /home/username/source/directory/*.rar /home/username/copy/extracted/to”

But I want to delete the source folder when its done.

File structure is .r00, .r01, .r02…

In this “unrar e -r -o- /home/username/source/directory/*.rar /home/username/copy/extracted/to” Where would I put the delete command when the extracting is done?

If I delete all partitions during Ubuntu installation and create efi partition, will I need to update firmware?

I am installing Ubuntu 19.04 on laptop(it has SSD drive) that comes with Free DOS predinstalled. I set BIOS to boot as uefi and I will delete all current partitions and create efi (with boot flag), root and home. Will everything be OK or, I will need to update firmware. Thank you in advance.

Delete Individual Items from Recycle Bin

I am using Batch Delete using Powershell.

After batch delete, items are moved to recycle bin. spWeb.RecycleBin.DeleteAll(); will delete all items from recycle bin. Instead, i want to remove only those items which i have batch deleted.

For that, i came across a command spWeb.RecycleBin.Delete(Guid[] ids); but i am missing something while implementing it. As a result i am getting error :

Exception calling "Delete" with "1" argument(s): "Specified argument was out of the range of valid values.Parameter name: ids" 

Following is the PowerShell Code used to achieve the same:

[Guid]$  a = "fcfdc7d3-ef59-4988-b3e9-0ae7184c6c4f" (Sample GUID Present in recycle bin) $  deletions = New-Object Collections.Generic.List[System.Guid]; $  deletions.Add($  a) $  ArchiveWeb.RecycleBin.Delete($  deletions.ToArray()); 

What i am missing here?

How to delete non existing external disk

Long time ago i was trying to fix a corrupted sd card, or usb, i don’t remember. After some failed attemps, i give up, but the disk keeps showing up with fdisk -l, gparted, and disks. How can i delete this ghost disk?

This is the ghost disk:

Disk /dev/sdb: 22,4 GiB, 24015495168 bytes, 46905264 sectors Disk model: SanDisk SSD U100 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: BC49F78D-AD2F-4BEA-8731-80F808B9120D