working on a tool to delete study and all its sub entities