Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #307 from vania-pooh/master
Browse files Browse the repository at this point in the history
Added documentation about removing video files (related to #299)
  • Loading branch information
vania-pooh authored Dec 9, 2017
2 parents d991d64 + 20e6372 commit a3beb5d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/video.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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/<filename>.mp4

0 comments on commit a3beb5d

Please sign in to comment.