[#1865] Expose destroy all records urls via api and limit it to test env.