Made delete() work