Delete object after accessing it