Deleting Objects
To delete an object, you need to know its ID and the ID of the container where it is stored.
As a result of the deletion, a new object with a unique identifier and type tombstone
will be created, containing meta-information about the deleted object.
Arguments:
Execution context
Method arguments, which includes:
Container ID
Object ID
Additional headers (optional)
Result:
Success, if there are no errors
Golang Java C#
func DeleteObject ( ctx context . Context , p pool . Pool , addr oid . Address ) error {
var prm pool . PrmObjectDelete
prm . SetAddress ( addr )
err := p . DeleteObject ( ctx , prm )
return err
}
public static void deleteObject ( FrostFSClient frostFSClient , ContainerId containerId , ObjectId objectId ,
CallContext callContext ) {
var prmObjectDelete = new PrmObjectDelete ( containerId , objectId );
frostFSClient . deleteObject ( prmObjectDelete , callContext );
}
public static async Task DeleteObjectAsync (
FrostFSClient client ,
FrostFsContainerId containerId ,
FrostFsObjectId objectId )
{
var args = new PrmObjectDelete ( containerId , objectId );
await client . DeleteObjectAsync ( args , default );
}
October 20, 2025
October 17, 2025