Time Portal Sandbox API
Remove a file or an empty directory, or a directory and everything under it with recursive. A non-empty directory without recursive is a 400.
curl "https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/files?path=%2Fhome%2Fepochal%2Fout%2Fresult.csv" \
-X DELETE \
-H "x-api-key: $EPOCHAL_API_KEY"Removed.
Read the Time Portal Sandbox API guide
A sandbox is a Linux virtual machine whose clock and network are set to an instant.
x-api-key
Send your API key in the x-api-key header. Create keys in the console; each belongs to one organization.
Example
"ek_…"Unique sandbox ID.
Example
"sbx_7f3k9q2m4x8p1c6w"Absolute path inside the sandbox.
Example
"/home/epochal/out/result.csv"Recursively remove a directory and its contents; when false, only removes a file or empty directory.
curl "https://api.epochal.com/v1/time-portal/sandbox/sbx_7f3k9q2m4x8p1c6w/files?path=%2Fhome%2Fepochal%2Fout%2Fresult.csv" \
-X DELETE \
-H "x-api-key: $EPOCHAL_API_KEY"Removed.