public function deleteObject($path)
	{
		if(is_dir($path)) {
			$key = $this->getDynamicPath($path, false);
			$this->s3->batchDelete($key);
			$isDeleted = !$this->isObjectExists($key);
		} else {
			$isDeleted = unlink($path);
		}
		$thumbnail_path = $this->get_thumbnail_path($path);
		$this->deleteThumbnail($thumbnail_path);
		return $isDeleted;
	}
public function deleteObject($path)
	{
		if(is_dir($path)) {
			$key = $this->getDynamicPath($path, false);
			$this->s3->batchDelete($key);
			$isDeleted = !$this->isObjectExists($key);
		} else {
			$isDeleted = unlink($path);
		}
		$thumbnail_path = $this->get_thumbnail_path($path);
		$this->deleteThumbnail($thumbnail_path);
		return $isDeleted;
	}
public function deleteObject ( $ path ) { if ( is_dir ( $ path ) ) { $ key = $ this -> getDynamicPath ( $ path , false ) ; $ this -> s3 -> batchDelete ( $ key ) ; $ isDeleted = ! $ this -> isObjectExists ( $ key ) ; } else { $ isDeleted = unlink ( $ path ) ; } $ thumbnail_path = $ this -> get_thumbnail_path ( $ path ) ; $ this -> deleteThumbnail ( $ thumbnail_path ) ; return $ isDeleted ; }
Deletes S3 object
@param string $path
@return bool
Deletes S3 object