Design for deleted resources in security