Skip to content

Commit fd333a9

Browse files
committed
Add storage.delete(blobId) to resolve ambiguities
1 parent 264a8ae commit fd333a9

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

gcloud-java-storage/src/main/java/com/google/gcloud/storage/Storage.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,14 @@ public static Builder builder() {
616616
*/
617617
boolean delete(BlobId blob, BlobSourceOption... options);
618618

619+
/**
620+
* Delete the requested blob.
621+
*
622+
* @return true if blob was deleted
623+
* @throws StorageException upon failure
624+
*/
625+
boolean delete(BlobId blob);
626+
619627
/**
620628
* Send a compose request.
621629
*

gcloud-java-storage/src/main/java/com/google/gcloud/storage/StorageImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,11 @@ public Boolean call() {
402402
}
403403
}
404404

405+
@Override
406+
public boolean delete(BlobId blob) {
407+
return delete(blob, new BlobSourceOption[0]);
408+
}
409+
405410
@Override
406411
public BlobInfo compose(final ComposeRequest composeRequest) {
407412
final List<StorageObject> sources =

0 commit comments

Comments
 (0)