docs: def delete(self, bucket=None, key=None, version_id=None, upload_id=None,
                 uploads=None):
          """Delete an object or abort a multipart upload.
  
          :param bucket: The bucket (instance or id) to get the object from.
              (Default: ``None``)
          :param key: The file key. (Default: ``None``)
          :param version_id: The version ID. (Default: ``None``)
          :param upload_id: The upload ID. (Default: ``None``)
          :returns: A Flask response.
          """
          if upload_id is not None:
              return self.multipart_delete(bucket, key, upload_id)
          else:
              obj = self.get_object(bucket, key, version_id)
              return self.delete_object(bucket, obj, version_id)