Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Remove file info from remove method

Jakub Novak0976c10a21f4
diff --git a/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts b/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts
index b59608077..34057463b 100644
--- a/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts
+++ b/packages/js-sdk/src/envd/filesystem/filesystem_pb.ts
@@ -271,11 +271,6 @@ export class RemoveRequest extends Message<RemoveRequest> {
* @generated from message filesystem.RemoveResponse
*/
export class RemoveResponse extends Message<RemoveResponse> {
- /**
- * @generated from field: filesystem.EntryInfo entry = 1;
- */
- entry?: EntryInfo;
-
constructor(data?: PartialMessage<RemoveResponse>) {
super();
proto3.util.initPartial(data, this);
@@ -284,7 +279,6 @@ export class RemoveResponse extends Message<RemoveResponse> {
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "filesystem.RemoveResponse";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
- { no: 1, name: "entry", kind: "message", T: EntryInfo },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RemoveResponse {
diff --git a/packages/js-sdk/src/sandbox/filesystem/index.ts b/packages/js-sdk/src/sandbox/filesystem/index.ts
index cd784e3c8..1a7a551e4 100644
--- a/packages/js-sdk/src/sandbox/filesystem/index.ts
+++ b/packages/js-sdk/src/sandbox/filesystem/index.ts
@@ -204,24 +204,12 @@ export class Filesystem {
}
}
- async remove(path: string, opts?: FilesystemRequestOpts): Promise<EntryInfo> {
+ async remove(path: string, opts?: FilesystemRequestOpts): Promise<void> {
try {
- const res = await this.rpc.remove({ path }, {
+ await this.rpc.remove({ path }, {
headers: authenticationHeader(opts?.user),
signal: this.connectionConfig.getSignal(opts?.requestTimeoutMs),
})
-
- const entry = res.entry
-
- if (!entry) {
- throw new SandboxError('Remove response did not contain required information')
- }
-
- return {
- path: entry.path,
- name: entry.name,
- type: mapFileType(entry.type)!,
- }
} catch (err) {
throw handleRpcError(err)
}
diff --git a/packages/js-sdk/tests/sandbox/files/remove.test.ts b/packages/js-sdk/tests/sandbox/files/remove.test.ts
index 0b6ed41a8..11026d3d0 100644
--- a/packages/js-sdk/tests/sandbox/files/remove.test.ts
+++ b/packages/js-sdk/tests/sandbox/files/remove.test.ts
@@ -7,10 +7,7 @@ sandboxTest('remove file', async ({ sandbox }) => {
const content = 'This file will be removed.'
await sandbox.files.write(filename, content)
- const info = await sandbox.files.remove(filename)
- assert.equal(info.name, filename)
- assert.equal(info.type, 'file')
- assert.equal(info.path, `/home/user/${filename}`)
+ await sandbox.files.remove(filename)
const exists = await sandbox.files.exists(filename)
assert.isFalse(exists)
diff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py
index ad928c1a2..43288a9f9 100644
--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py
+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.py
@@ -1,22 +1,12 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
-# NO CHECKED-IN PROTOBUF GENCODE
# source: filesystem/filesystem.proto
# Protobuf Python Version: 5.27.3
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
-from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
-_runtime_version.ValidateProtobufRuntimeVersion(
- _runtime_version.Domain.PUBLIC,
- 5,
- 27,
- 3,
- '',
- 'filesystem/filesystem.proto'
-)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
@@ -24,7 +14,7 @@ _sym_db = _symbol_database.Default()
-DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66ilesystem/filesystem.proto\x12\nfilesystem\"G\n\x0bMoveRequest\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\tR\x0b\x64\x65stination\";\n\x0cMoveResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"$\n\x0eMakeDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\">\n\x0fMakeDirResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"#\n\rRemoveRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"=\n\x0eRemoveResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"!\n\x0bStatRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\";\n\x0cStatResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"]\n\tEntryInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12(\n\x04type\x18\x02 \x01(\x0e\x32\x14.filesystem.FileTypeR\x04type\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\"$\n\x0eListDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"B\n\x0fListDirResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries\"%\n\x0fWatchDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"\xe1\x02\n\x10WatchDirResponse\x12?\n\x05start\x18\x01 \x01(\x0b\x32\'.filesystem.WatchDirResponse.StartEventH\x00R\x05start\x12N\n\nfilesystem\x18\x02 \x01(\x0b\x32,.filesystem.WatchDirResponse.FilesystemEventH\x00R\nfilesystem\x12\x46\n\tkeepalive\x18\x03 \x01(\x0b\x32&.filesystem.WatchDirResponse.KeepAliveH\x00R\tkeepalive\x1a\x0c\n\nStartEvent\x1aP\n\x0f\x46ilesystemEvent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x15.filesystem.EventTypeR\x04type\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent*R\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46ILE_TYPE_FILE\x10\x01\x12\x17\n\x13\x46ILE_TYPE_DIRECTORY\x10\x02*\x98\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x45VENT_TYPE_CREATE\x10\x01\x12\x14\n\x10\x45VENT_TYPE_WRITE\x10\x02\x12\x15\n\x11\x45VENT_TYPE_REMOVE\x10\x03\x12\x15\n\x11\x45VENT_TYPE_RENAME\x10\x04\x12\x14\n\x10\x45VENT_TYPE_CHMOD\x10\x05\x32\x94\x03\n\nFilesystem\x12\x39\n\x04Stat\x12\x17.filesystem.StatRequest\x1a\x18.filesystem.StatResponse\x12\x42\n\x07MakeDir\x12\x1a.filesystem.MakeDirRequest\x1a\x1b.filesystem.MakeDirResponse\x12\x39\n\x04Move\x12\x17.filesystem.MoveRequest\x1a\x18.filesystem.MoveResponse\x12\x42\n\x07ListDir\x12\x1a.filesystem.ListDirRequest\x1a\x1b.filesystem.ListDirResponse\x12G\n\x08WatchDir\x12\x1b.filesystem.WatchDirRequest\x1a\x1c.filesystem.WatchDirResponse0\x01\x12?\n\x06Remove\x12\x19.filesystem.RemoveRequest\x1a\x1a.filesystem.RemoveResponseBi\n\x0e\x63om.filesystemB\x0f\x46ilesystemProtoP\x01\xa2\x02\x03\x46XX\xaa\x02\nFilesystem\xca\x02\nFilesystem\xe2\x02\x16\x46ilesystem\\GPBMetadata\xea\x02\nFilesystemb\x06proto3')
+DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66ilesystem/filesystem.proto\x12\nfilesystem\"G\n\x0bMoveRequest\x12\x16\n\x06source\x18\x01 \x01(\tR\x06source\x12 \n\x0b\x64\x65stination\x18\x02 \x01(\tR\x0b\x64\x65stination\";\n\x0cMoveResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"$\n\x0eMakeDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\">\n\x0fMakeDirResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"#\n\rRemoveRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"\x10\n\x0eRemoveResponse\"!\n\x0bStatRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\";\n\x0cStatResponse\x12+\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\x15.filesystem.EntryInfoR\x05\x65ntry\"]\n\tEntryInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12(\n\x04type\x18\x02 \x01(\x0e\x32\x14.filesystem.FileTypeR\x04type\x12\x12\n\x04path\x18\x03 \x01(\tR\x04path\"$\n\x0eListDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"B\n\x0fListDirResponse\x12/\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\x15.filesystem.EntryInfoR\x07\x65ntries\"%\n\x0fWatchDirRequest\x12\x12\n\x04path\x18\x01 \x01(\tR\x04path\"\xe1\x02\n\x10WatchDirResponse\x12?\n\x05start\x18\x01 \x01(\x0b\x32\'.filesystem.WatchDirResponse.StartEventH\x00R\x05start\x12N\n\nfilesystem\x18\x02 \x01(\x0b\x32,.filesystem.WatchDirResponse.FilesystemEventH\x00R\nfilesystem\x12\x46\n\tkeepalive\x18\x03 \x01(\x0b\x32&.filesystem.WatchDirResponse.KeepAliveH\x00R\tkeepalive\x1a\x0c\n\nStartEvent\x1aP\n\x0f\x46ilesystemEvent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12)\n\x04type\x18\x02 \x01(\x0e\x32\x15.filesystem.EventTypeR\x04type\x1a\x0b\n\tKeepAliveB\x07\n\x05\x65vent*R\n\x08\x46ileType\x12\x19\n\x15\x46ILE_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46ILE_TYPE_FILE\x10\x01\x12\x17\n\x13\x46ILE_TYPE_DIRECTORY\x10\x02*\x98\x01\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x45VENT_TYPE_CREATE\x10\x01\x12\x14\n\x10\x45VENT_TYPE_WRITE\x10\x02\x12\x15\n\x11\x45VENT_TYPE_REMOVE\x10\x03\x12\x15\n\x11\x45VENT_TYPE_RENAME\x10\x04\x12\x14\n\x10\x45VENT_TYPE_CHMOD\x10\x05\x32\x94\x03\n\nFilesystem\x12\x39\n\x04Stat\x12\x17.filesystem.StatRequest\x1a\x18.filesystem.StatResponse\x12\x42\n\x07MakeDir\x12\x1a.filesystem.MakeDirRequest\x1a\x1b.filesystem.MakeDirResponse\x12\x39\n\x04Move\x12\x17.filesystem.MoveRequest\x1a\x18.filesystem.MoveResponse\x12\x42\n\x07ListDir\x12\x1a.filesystem.ListDirRequest\x1a\x1b.filesystem.ListDirResponse\x12G\n\x08WatchDir\x12\x1b.filesystem.WatchDirRequest\x1a\x1c.filesystem.WatchDirResponse0\x01\x12?\n\x06Remove\x12\x19.filesystem.RemoveRequest\x1a\x1a.filesystem.RemoveResponseBi\n\x0e\x63om.filesystemB\x0f\x46ilesystemProtoP\x01\xa2\x02\x03\x46XX\xaa\x02\nFilesystem\xca\x02\nFilesystem\xe2\x02\x16\x46ilesystem\\GPBMetadata\xea\x02\nFilesystemb\x06proto3')
_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -32,10 +22,10 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'filesystem.filesystem_pb2',
if not _descriptor._USE_C_DESCRIPTORS:
_globals['DESCRIPTOR']._loaded_options = None
_globals['DESCRIPTOR']._serialized_options = b'\n\016com.filesystemB\017FilesystemProtoP\001\242\002\003FXX\252\002\nFilesystem\312\002\nFilesystem\342\002\026Filesystem\\GPBMetadata\352\002\nFilesystem'
- _globals['_FILETYPE']._serialized_start=1071
- _globals['_FILETYPE']._serialized_end=1153
- _globals['_EVENTTYPE']._serialized_start=1156
- _globals['_EVENTTYPE']._serialized_end=1308
+ _globals['_FILETYPE']._serialized_start=1026
+ _globals['_FILETYPE']._serialized_end=1108
+ _globals['_EVENTTYPE']._serialized_start=1111
+ _globals['_EVENTTYPE']._serialized_end=1263
_globals['_MOVEREQUEST']._serialized_start=43
_globals['_MOVEREQUEST']._serialized_end=114
_globals['_MOVERESPONSE']._serialized_start=116
@@ -47,27 +37,27 @@ if not _descriptor._USE_C_DESCRIPTORS:
_globals['_REMOVEREQUEST']._serialized_start=279
_globals['_REMOVEREQUEST']._serialized_end=314
_globals['_REMOVERESPONSE']._serialized_start=316
- _globals['_REMOVERESPONSE']._serialized_end=377
- _globals['_STATREQUEST']._serialized_start=379
- _globals['_STATREQUEST']._serialized_end=412
- _globals['_STATRESPONSE']._serialized_start=414
- _globals['_STATRESPONSE']._serialized_end=473
- _globals['_ENTRYINFO']._serialized_start=475
- _globals['_ENTRYINFO']._serialized_end=568
- _globals['_LISTDIRREQUEST']._serialized_start=570
- _globals['_LISTDIRREQUEST']._serialized_end=606
- _globals['_LISTDIRRESPONSE']._serialized_start=608
- _globals['_LISTDIRRESPONSE']._serialized_end=674
- _globals['_WATCHDIRREQUEST']._serialized_start=676
- _globals['_WATCHDIRREQUEST']._serialized_end=713
- _globals['_WATCHDIRRESPONSE']._serialized_start=716
- _globals['_WATCHDIRRESPONSE']._serialized_end=1069
- _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_start=953
- _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_end=965
- _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_start=967
- _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_end=1047
- _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_start=1049
- _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_end=1060
- _globals['_FILESYSTEM']._serialized_start=1311
- _globals['_FILESYSTEM']._serialized_end=1715
+ _globals['_REMOVERESPONSE']._serialized_end=332
+ _globals['_STATREQUEST']._serialized_start=334
+ _globals['_STATREQUEST']._serialized_end=367
+ _globals['_STATRESPONSE']._serialized_start=369
+ _globals['_STATRESPONSE']._serialized_end=428
+ _globals['_ENTRYINFO']._serialized_start=430
+ _globals['_ENTRYINFO']._serialized_end=523
+ _globals['_LISTDIRREQUEST']._serialized_start=525
+ _globals['_LISTDIRREQUEST']._serialized_end=561
+ _globals['_LISTDIRRESPONSE']._serialized_start=563
+ _globals['_LISTDIRRESPONSE']._serialized_end=629
+ _globals['_WATCHDIRREQUEST']._serialized_start=631
+ _globals['_WATCHDIRREQUEST']._serialized_end=668
+ _globals['_WATCHDIRRESPONSE']._serialized_start=671
+ _globals['_WATCHDIRRESPONSE']._serialized_end=1024
+ _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_start=908
+ _globals['_WATCHDIRRESPONSE_STARTEVENT']._serialized_end=920
+ _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_start=922
+ _globals['_WATCHDIRRESPONSE_FILESYSTEMEVENT']._serialized_end=1002
+ _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_start=1004
+ _globals['_WATCHDIRRESPONSE_KEEPALIVE']._serialized_end=1015
+ _globals['_FILESYSTEM']._serialized_start=1266
+ _globals['_FILESYSTEM']._serialized_end=1670
# @@protoc_insertion_point(module_scope)
diff --git a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi
index c0ca2c7d1..8d05ef81d 100644
--- a/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi
+++ b/packages/python-sdk/e2b/envd/filesystem/filesystem_pb2.pyi
@@ -63,10 +63,8 @@ class RemoveRequest(_message.Message):
def __init__(self, path: _Optional[str] = ...) -> None: ...
class RemoveResponse(_message.Message):
- __slots__ = ("entry",)
- ENTRY_FIELD_NUMBER: _ClassVar[int]
- entry: EntryInfo
- def __init__(self, entry: _Optional[_Union[EntryInfo, _Mapping]] = ...) -> None: ...
+ __slots__ = ()
+ def __init__(self) -> None: ...
class StatRequest(_message.Message):
__slots__ = ("path",)
diff --git a/packages/python-sdk/e2b/envd/process/process_pb2.py b/packages/python-sdk/e2b/envd/process/process_pb2.py
index 1d0e7c033..f6bd77e91 100644
--- a/packages/python-sdk/e2b/envd/process/process_pb2.py
+++ b/packages/python-sdk/e2b/envd/process/process_pb2.py
@@ -1,22 +1,12 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
-# NO CHECKED-IN PROTOBUF GENCODE
# source: process/process.proto
# Protobuf Python Version: 5.27.3
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
-from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
-_runtime_version.ValidateProtobufRuntimeVersion(
- _runtime_version.Domain.PUBLIC,
- 5,
- 27,
- 3,
- '',
- 'process/process.proto'
-)
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
diff --git a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py
index 3050261af..e8fb15ca9 100644
--- a/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py
+++ b/packages/python-sdk/e2b/sandbox_async/filesystem/filesystem.py
@@ -169,16 +169,15 @@ class Filesystem:
path: str,
user: Username = "user",
request_timeout: Optional[float] = None,
- ) -> EntryInfo:
+ ) -> None:
try:
- r = await self._rpc.aremove(
+ await self._rpc.aremove(
filesystem_pb2.RemoveRequest(path=path),
request_timeout=self._connection_config.get_request_timeout(
request_timeout
),
headers=authentication_header(user),
)
- return r.entry
except Exception as e:
raise handle_rpc_exception(e)
diff --git a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py
index e7424942d..6bdb7a300 100644
--- a/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py
+++ b/packages/python-sdk/e2b/sandbox_sync/filesystem/filesystem.py
@@ -173,17 +173,15 @@ class Filesystem:
path: str,
user: Username = "user",
request_timeout: Optional[float] = None,
- ) -> EntryInfo:
+ ) -> None:
try:
- r = self._rpc.remove(
+ self._rpc.remove(
filesystem_pb2.RemoveRequest(path=path),
request_timeout=self._connection_config.get_request_timeout(
request_timeout
),
headers=authentication_header(user),
)
-
- return r.entry
except Exception as e:
raise handle_rpc_exception(e)
diff --git a/packages/python-sdk/example.py b/packages/python-sdk/example.py
index 3a876afd8..98a7fcf17 100644
--- a/packages/python-sdk/example.py
+++ b/packages/python-sdk/example.py
@@ -11,8 +11,12 @@ logging.basicConfig(level=logging.ERROR)
async def main():
- sbx = await AsyncSandbox.create(timeout=10)
- await sbx.commands.run("sleep 10", timeout=1000)
+ sbx = await AsyncSandbox.create(timeout=10, debug=True)
+ await sbx.files.make_dir("test")
+ with open("Makefile", "rb") as f, open("Makefile", "rb") as f2:
+ await sbx.files.write("/home/user/test/a.txt", f, f2)
+ print(await sbx.files.list("test"))
+ print(await sbx.files.list("/home/user/test"))
# for _ in range(10):
# start = time.time()
# end = time.time()
diff --git a/packages/python-sdk/tests/async/sandbox_async/files/test_remove.py b/packages/python-sdk/tests/async/sandbox_async/files/test_remove.py
index a1c1d3125..d808a45b9 100644
--- a/packages/python-sdk/tests/async/sandbox_async/files/test_remove.py
+++ b/packages/python-sdk/tests/async/sandbox_async/files/test_remove.py
@@ -8,8 +8,9 @@ async def test_remove_file(async_sandbox: AsyncSandbox):
content = "This file will be removed."
await async_sandbox.files.write(filename, content)
- info = await async_sandbox.files.remove(filename)
- assert info.path == f"/home/user/{filename}"
+
+ await async_sandbox.files.remove(filename)
+
exists = await async_sandbox.files.exists(filename)
assert not exists
diff --git a/packages/python-sdk/tests/sync/sandbox_sync/files/test_remove.py b/packages/python-sdk/tests/sync/sandbox_sync/files/test_remove.py
index 8f48af53d..17e07cfa6 100644
--- a/packages/python-sdk/tests/sync/sandbox_sync/files/test_remove.py
+++ b/packages/python-sdk/tests/sync/sandbox_sync/files/test_remove.py
@@ -7,8 +7,7 @@ def test_remove_file(sandbox: Sandbox):
sandbox.files.write(filename, content)
- info = sandbox.files.remove(filename)
- assert info.path == f"/home/user/{filename}"
+ sandbox.files.remove(filename)
exists = sandbox.files.exists(filename)
assert not exists
diff --git a/spec/envd/filesystem/filesystem.proto b/spec/envd/filesystem/filesystem.proto
index c1483100d..10a2cdf20 100644
--- a/spec/envd/filesystem/filesystem.proto
+++ b/spec/envd/filesystem/filesystem.proto
@@ -32,9 +32,7 @@ message RemoveRequest {
string path = 1;
}
-message RemoveResponse {
- EntryInfo entry = 1;
-}
+message RemoveResponse {}
message StatRequest {
string path = 1;