Can't mount or format external drive with APFS volume
I have an external drive that previously had worked fine but now is unable to mount. Any time I try to mount it in Disk Utility I get:
"Could not mount “disk2s2”. (com.apple.DiskManagement.disenter error -119930868.)"
I have ran First Aid and got:
"Running First Aid on “” (disk2s2)
Repairing storage system
Performing fsck_apfs -y -x /dev/disk2s2
Checking the container superblock.
Checking the space manager.
Checking the space manager free queue trees.
Checking the object map.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking the extent ref tree.
error: btn: invalid key order (0) oid 9951686 / oxid 0 / level 1 / flags 0x0
previous key: 0x200000002d507b53
current key: 0x200000002bb21561
next key: 0x200000002bb38e15
Extent ref tree is invalid.
The volume /dev/disk2s2 could not be verified completely.
Storage system check exit code is 0.
Operation successful."
When I try to erase the drive in terminal I get this:
"Started erase on disk2
Unmounting disk
Error: -69877: Couldn't open device"
I really don't mind losing the data, I'd just like the drive usable again.
MacBook Pro 13″, OS X 10.11