diff --git a/docs/video.adoc b/docs/video.adoc index 827f3539..601fa728 100644 --- a/docs/video.adoc +++ b/docs/video.adoc @@ -71,3 +71,18 @@ To see all available files use: ---- http://selenoid-host.example.com:4444/video/ ---- + +=== Deleting Video Files + +Selenoid intentionally has no built-in logic to automatically remove old video files. To limit storage space consumption you have two alternatives: + +. Schedule scripts automatically removing files older than desired date and time. An example command under Unix operating systems can look like: + + $ find /path/to/video/dir -mindepth 1 -maxdepth 1 -mmin +120 -name '*.mp4' | xargs rm -rf + ++ +Notice `-mmin +120` argument meaning to only process files older than 2 hours (120 minutes). + +. Send video removal requests (e.g. from passed test cases). Just use `DELETE` HTTP method and Selenoid video URL: + + $ curl -X DELETE http://selenoid-host.example.com:4444/video/.mp4 \ No newline at end of file